// // sub_76F40C from 0x76f40c to 0x76f50e (258 bytes) // // 2 xrefs: // > sub_76FA08 @ 0x76fa3e // > sub_76FA08 @ 0x76fb82 // // 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 // void __fastcall sub_76F40C(int a1, int a2, int a3) { int v4; // r0 int v7; // r0 unsigned int v8; // r0 int v9; // r4 int v10; // r3 unsigned int v11; // [sp+10h] [bp+0h] BYREF int v12; // [sp+14h] [bp+4h] int v13; // [sp+18h] [bp+8h] BYREF _DWORD v14[2]; // [sp+1Ch] [bp+Ch] BYREF v4 = *(_DWORD *)(a1 + 88); if ( !v4 ) sub_772FE4(0); if ( (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 24))(v4) ) goto LABEL_5; v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 88) + 32))(*(_DWORD *)(a1 + 88)); v8 = (*(int (__fastcall **)(_DWORD, int, int, int, _DWORD *, unsigned int *, char *, int *))(**(_DWORD **)(a1 + 88) + 8))( *(_DWORD *)(a1 + 88), a1 + 52, a2, a2 + 4 * a3, v14, &v11, (char *)&v11 + v7 * a3, &v13); if ( v8 > 1 ) { if ( v8 == 3 ) { LABEL_5: sub_77A10C(a1 + 36, a2, a3); goto LABEL_6; } LABEL_13: sub_77356C("basic_filebuf::_M_convert_to_external conversion error"); } v11 = v8; v9 = v13 - (_DWORD)&v11; v12 = v13; if ( v9 == sub_77A10C(a1 + 36, &v11, v13 - (_DWORD)&v11) ) v10 = v11 & 1; else v10 = 0; if ( v10 ) { if ( (*(int (__fastcall **)(_DWORD, int, _DWORD, _DWORD, _DWORD *, unsigned int *, int, int *))(**(_DWORD **)(a1 + 88) + 8))( *(_DWORD *)(a1 + 88), a1 + 52, v14[0], *(_DWORD *)(a1 + 20), v14, &v11, v12, &v13) == 2 ) goto LABEL_13; sub_77A10C(a1 + 36, &v11, v13 - (_DWORD)&v11); } LABEL_6: __asm { POP.W {R4-R11,PC} } }
GD Web Decomp Icon

GD Web Decomp

Raw Source