// // sub_1005D2B60 from 0x1005d2b60 to 0x1005d2cec (396 bytes) // // 1 xrefs: // > sub_1005D2B58 @ 0x1005d2b5c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _BYTE *__fastcall sub_1005D2B60(__int64 a1) { _BYTE *v2; // x19 char **v3; // x0 _QWORD *v4; // x21 __int64 v5; // x0 unsigned int (__fastcall *v6)(_BYTE *); // x8 v2 = sub_100588710(144, (__int64)"dh_lib.c", 126); if ( !v2 ) { sub_1005E0E48(5, 105, 65, "dh_lib.c", 128); return nullptr; } v3 = (char **)qword_100882CF0; if ( !qword_100882CF0 ) { v3 = sub_1005D270C(); qword_100882CF0 = (__int64)v3; } *((_QWORD *)v2 + 16) = v3; if ( a1 ) { if ( !(unsigned int)sub_1005D6FFC(a1) ) { sub_1005E0E48(5, 105, 38, "dh_lib.c", 136); goto LABEL_18; } *((_QWORD *)v2 + 17) = a1; v4 = v2 + 136; } else { a1 = sub_1005D874C(); *((_QWORD *)v2 + 17) = a1; v4 = v2 + 136; if ( !a1 ) { v5 = *((_QWORD *)v2 + 16); goto LABEL_13; } } v5 = sub_1005D875C(a1); *((_QWORD *)v2 + 16) = v5; if ( !v5 ) { sub_1005E0E48(5, 105, 38, "dh_lib.c", 146); sub_1005D70C4(*((_QWORD *)v2 + 17)); LABEL_18: sub_100588C44(v2); return nullptr; } LABEL_13: *((_QWORD *)v2 + 12) = 0; *((_QWORD *)v2 + 4) = 0; *((_QWORD *)v2 + 5) = 0; *((_QWORD *)v2 + 2) = 0; *((_QWORD *)v2 + 3) = 0; *(_QWORD *)v2 = 0; *((_QWORD *)v2 + 1) = 0; *((_DWORD *)v2 + 22) = 0; *((_QWORD *)v2 + 9) = 0; *((_QWORD *)v2 + 10) = 0; *((_QWORD *)v2 + 7) = 0; *((_QWORD *)v2 + 8) = 0; *((_DWORD *)v2 + 26) = 1; *((_DWORD *)v2 + 12) = *(_DWORD *)(v5 + 48) & 0xFFFFFBFF; sub_1005893A4(8, (__int64)v2, (__int64)(v2 + 112)); v6 = *(unsigned int (__fastcall **)(_BYTE *))(*((_QWORD *)v2 + 16) + 32LL); if ( v6 && !v6(v2) ) { if ( *v4 ) sub_1005D70C4(*v4); sub_1005894CC(8, (__int64)v2, (__int64)(v2 + 112)); goto LABEL_18; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source