// // sub_1000CA880 from 0x1000ca880 to 0x1000ca926 (166 bytes) // // 5 xrefs: // > sub_1000C9520 @ 0x1000c9b0b // > sub_1000C9520 @ 0x1000ca3e1 // > sub_1000C9520 @ 0x1000ca447 // > sub_1000CBA70 @ 0x1000cc57e // > sub_1000CBA70 @ 0x1000cc6b9 // // 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 12:20:38 +0000 // __int64 __fastcall sub_1000CA880(__int64 a1, __int64 *a2, __int64 a3) { unsigned __int64 v3; // r14 __int64 result; // rax __int64 v5; // r12 signed __int64 v6; // r13 char *v7; // rax __int64 v8; // r14 __int64 v9; // [rsp+10h] [rbp-30h] v3 = *(_QWORD *)(a1 + 8); if ( v3 >= *(_QWORD *)(a1 + 16) ) { result = sub_1000E52F0(a1); v8 = result; } else { *(_OWORD *)v3 = 0; *(_QWORD *)(v3 + 16) = 0; result = *a2; v5 = a2[1]; v9 = *a2; v6 = v5 - *a2; if ( v6 ) { if ( v6 < 0 ) sub_1000E46A0(a1, a2, a3); v7 = (char *)operator new(v6); *(_QWORD *)v3 = v7; *(_QWORD *)(v3 + 8) = v7; *(_QWORD *)(v3 + 16) = &v7[v6]; result = sub_1000E4770(v3, v9, v5, v7); *(_QWORD *)(v3 + 8) = result; } v8 = v3 + 24; *(_QWORD *)(a1 + 8) = v8; } *(_QWORD *)(a1 + 8) = v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source