Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int POT_SWDEntry(char *param_1,int param_2,int param_3)
- {
- int *piVar1;
- int **ppiVar2;
- int iVar3;
- if (((*param_1 == 'S') && (param_1[1] == 'W')) && (param_1[2] == 'D')) {
- if (((byte)param_1[0xc] < 7) && (5 < (byte)param_1[0xc])) {
- iVar3 = 0;
- piVar1 = &FL_Pointers;
- do {
- if (*piVar1 == 0) break;
- iVar3 = iVar3 + 1;
- piVar1 = piVar1 + 1;
- } while (iVar3 < 8);
- if (iVar3 == 8) {
- iVar3 = 0;
- }
- else {
- ppiVar2 = (int **)(&FL_Pointers + iVar3);
- piVar1 = POT_FLAllocateMemory(0x24);
- *ppiVar2 = piVar1;
- if (*ppiVar2 == (int *)0x0) {
- iVar3 = 0;
- }
- else {
- memset(*ppiVar2,0,0x24);
- *(undefined *)((int)*ppiVar2 + 2) = 1;
- (*ppiVar2)[2] = (int)param_1;
- (*ppiVar2)[1] = (int)param_1;
- (*ppiVar2)[3] = (int)(param_1 + *(int *)(param_1 + 0x10));
- (*ppiVar2)[4] = (int)(param_1 + *(int *)(param_1 + 0x14));
- *(ushort *)*ppiVar2 = 0xc0;
- if (param_3 == 0) {
- *(ushort *)*ppiVar2 = *(ushort *)*ppiVar2 | 2;
- }
- POT_DEF0ReadingThing(iVar3 + 1);
- piVar1 = POT_FLAllocateMemory(0xa4);
- (*ppiVar2)[7] = (int)piVar1;
- memset((void *)(*ppiVar2)[7],0,0xa4);
- *(undefined2 *)(piVar1 + 3) = 0x8000;
- *(undefined *)(piVar1 + 5) = 0;
- piVar1[10] = (*ppiVar2)[4];
- piVar1[0xb] = (*ppiVar2)[2] + *(int *)((*ppiVar2)[4] + 0xc);
- piVar1[0xc] = (*ppiVar2)[4] + 0x14;
- *(undefined *)((int)piVar1 + 0x12) = 5;
- *(ushort *)((int)piVar1 + 0xe) = *(ushort *)((int)piVar1 + 0xe) | 0xc1;
- piVar1[7] = param_2;
- *piVar1 = 0;
- piVar1[1] = 0;
- FUN_088a6bd8((float *)(piVar1 + 0x1c));
- FUN_088a6d34((ushort *)(piVar1 + 0x22));
- FUN_088a6bd8((float *)(piVar1 + 0x11));
- FUN_088a6d34((ushort *)(piVar1 + 0x17));
- iVar3 = iVar3 + 1;
- }
- }
- }
- else {
- (*FL_FuncPtr.fl_fprint)
- (FL_Error_%s_Conversion_version_is_different._Please_convert_again.,
- s_FLEntry_088b3c30);
- iVar3 = 0;
- }
- }
- else {
- (*FL_FuncPtr.fl_fprint)(FL_Error_%s_Header_information_is_incorrect,s_FLEntry_088b3c30);
- iVar3 = 0;
- }
- return iVar3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement