// // sub_1800C36A0 from 0x1800c36a0 to 0x1800c3957 (695 bytes) // // 6 xrefs: // > sub_1800C3A70 @ 0x1800c3aa4 // > sub_1800C3B70 @ 0x1800c3b92 // > sub_1800C3BC0 @ 0x1800c3c05 // > @ 0x18018a9f4 // > @ 0x18018aa38 // > @ 0x1801fdd7c // // 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 // __int64 __fastcall sub_1800C36A0(__int64 a1) { int v3; // esi __int64 v4; // rdi _DWORD *v5; // rdx __int64 *v6; // rdi HRESULT Instance; // eax __int64 v8; // rcx int v9; // eax __int64 v10; // rcx unsigned int i; // edi __int16 *v12; // rdx int ppv; // [rsp+20h] [rbp-38h] unsigned int v14; // [rsp+60h] [rbp+8h] BYREF __int64 v15; // [rsp+68h] [rbp+10h] BYREF LPVOID pv; // [rsp+70h] [rbp+18h] BYREF __int64 v17; // [rsp+78h] [rbp+20h] BYREF if ( *(_BYTE *)(a1 + 784) ) return 0; if ( !(unsigned __int8)sub_1800C0750() ) { *(_BYTE *)(a1 + 784) = 1; return 0; } v3 = 0; if ( *(int *)(a1 + 1048) > 0 ) { v4 = a1 + 1064; do { CoTaskMemFree(*(LPVOID *)(v4 - 8)); v5 = *(_DWORD **)v4; *(_QWORD *)(v4 - 8) = 0; if ( v5 ) { LOBYTE(ppv) = 1; sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v5); *(_QWORD *)v4 = 0; } *(_QWORD *)(v4 + 8) = 0; ++v3; v4 += 24; } while ( v3 < *(_DWORD *)(a1 + 1048) ); } v6 = (__int64 *)(a1 + 1824); *(_DWORD *)(a1 + 1048) = 0; if ( !*(_QWORD *)(a1 + 1824) ) { Instance = CoCreateInstance(&rclsid, nullptr, 0x17u, &riid, (LPVOID *)(a1 + 1824)); if ( Instance == -2147221008 ) { if ( CoInitializeEx(nullptr, 2u) < 0 ) return 51; Instance = CoCreateInstance(&rclsid, nullptr, 0x17u, &riid, (LPVOID *)(a1 + 1824)); } if ( Instance < 0 ) return 51; } v8 = *v6; v15 = 0; v9 = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, __int64 *, int))(*(_QWORD *)v8 + 32LL))(v8, 0, 0, &v15, ppv); if ( v9 == -2147023728 ) goto LABEL_20; if ( v9 < 0 ) return 51; if ( !(unsigned int)sub_1800C4B30(a1, v15, (int)a1 + 24 * (*(_DWORD *)(a1 + 1048) + 44), 0, 0) ) ++*(_DWORD *)(a1 + 1048); (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 16LL))(v15); LABEL_20: v10 = *v6; v17 = 0; if ( (*(int (__fastcall **)(__int64, _QWORD, __int64, __int64 *))(*(_QWORD *)v10 + 24LL))(v10, 0, 1, &v17) < 0 ) return 51; v14 = 0; if ( (*(int (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v17 + 24LL))(v17, &v14) < 0 ) return 51; for ( i = 0; i < v14; ++i ) { if ( (*(int (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)v17 + 32LL))(v17, i, &v15) >= 0 ) { pv = nullptr; if ( !(*(unsigned int (__fastcall **)(__int64, LPVOID *))(*(_QWORD *)v15 + 40LL))(v15, &pv) ) { if ( *(int *)(a1 + 1048) >= 32 || (v12 = *(__int16 **)(a1 + 1056)) != nullptr && !(unsigned int)sub_1800B82D0((__int64)pv, v12) || (unsigned int)sub_1800C4B30(a1, v15, (int)a1 + 24 * (*(_DWORD *)(a1 + 1048) + 44), (_DWORD)pv, 0) ) { CoTaskMemFree(pv); } else { ++*(_DWORD *)(a1 + 1048); } } (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 16LL))(v15); } } (*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 16LL))(v17); *(_BYTE *)(a1 + 784) = 1; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source