// // sub_1800C43E0 from 0x1800c43e0 to 0x1800c461a (570 bytes) // // 4 xrefs: // > sub_1800C46C0 @ 0x1800c4719 // > @ 0x18018aafc // > @ 0x18018ab0c // > @ 0x1801fde30 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:54:04 +0000 // __int64 __fastcall sub_1800C43E0(__int64 a1) { int v2; // esi __int64 v3; // rdi _DWORD *v4; // rdx __int64 v5; // rcx int v6; // eax __int64 v7; // rcx unsigned int i; // edi __int16 *v9; // rdx char v11; // [rsp+20h] [rbp-48h] _QWORD v12[3]; // [rsp+30h] [rbp-38h] BYREF int v13; // [rsp+70h] [rbp+8h] BYREF LPVOID pv; // [rsp+78h] [rbp+10h] BYREF __int64 v15; // [rsp+80h] [rbp+18h] BYREF __int64 v16; // [rsp+88h] [rbp+20h] BYREF v2 = 0; if ( *(int *)(a1 + 1888) > 0 ) { v3 = a1 + 1904; do { CoTaskMemFree(*(LPVOID *)(v3 - 8)); v4 = *(_DWORD **)v3; *(_QWORD *)(v3 - 8) = 0; if ( v4 ) { v11 = 1; sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v4); *(_QWORD *)v3 = 0; } *(_QWORD *)(v3 + 8) = 0; ++v2; v3 += 24; } while ( v2 < *(_DWORD *)(a1 + 1888) ); } v5 = *(_QWORD *)(a1 + 1824); *(_DWORD *)(a1 + 1888) = 0; v12[0] = 0; v6 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD, _QWORD *, char))(*(_QWORD *)v5 + 32LL))(v5, 1, 0, v12, v11); if ( v6 != -2147023728 ) { if ( v6 < 0 ) return 57; if ( !(unsigned int)sub_1800C4B30(a1, v12[0], (int)a1 + 24 * (*(_DWORD *)(a1 + 1888) + 79), 0, 1) ) ++*(_DWORD *)(a1 + 1888); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)v12[0] + 16LL))(v12[0]); } v7 = *(_QWORD *)(a1 + 1824); v16 = 0; if ( (*(int (__fastcall **)(__int64, __int64, __int64, __int64 *))(*(_QWORD *)v7 + 24LL))(v7, 2, 1, &v16) < 0 ) return 57; v13 = 0; if ( (*(int (__fastcall **)(__int64, int *))(*(_QWORD *)v16 + 24LL))(v16, &v13) < 0 ) return 57; for ( i = 0; (int)i < v13; ++i ) { v15 = 0; if ( (*(int (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)v16 + 32LL))(v16, i, &v15) >= 0 ) { pv = nullptr; if ( !(*(unsigned int (__fastcall **)(__int64, LPVOID *))(*(_QWORD *)v15 + 40LL))(v15, &pv) ) { if ( *(int *)(a1 + 1888) >= 32 || (v9 = *(__int16 **)(a1 + 1896)) != nullptr && !(unsigned int)sub_1800B82D0((__int64)pv, v9) || (unsigned int)sub_1800C4B30(a1, v15, (int)a1 + 24 * (*(_DWORD *)(a1 + 1888) + 79), (_DWORD)pv, 1) ) { CoTaskMemFree(pv); } else { ++*(_DWORD *)(a1 + 1888); } } (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 16LL))(v15); } } (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 16LL))(v16); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source