// // sub_18011D4A0 from 0x18011d4a0 to 0x18011d669 (457 bytes) // // 3 xrefs: // > @ 0x18016e110 // > @ 0x18016e150 // > @ 0x1802022a0 // // 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_18011D4A0(__int64 a1, __int64 a2, int a3, int a4, signed int a5) { __int64 v5; // r10 unsigned __int64 v10; // rsi __int64 v11; // rax int v12; // esi int v13; // edi int v14; // r14d signed int v15; // r15d __int64 result; // rax v5 = *(int *)(a1 + 16); switch ( a3 ) { case 1: v11 = 8; break; case 2: v11 = 16; break; case 3: v11 = 24; break; default: if ( (unsigned int)(a3 - 4) >= 2 ) { LODWORD(v10) = *(_DWORD *)(a1 + 16); goto LABEL_11; } v11 = 32; break; } v10 = (v11 * (unsigned __int64)(unsigned int)v5) >> 3; LABEL_11: v12 = a4 * v10; memset((void *)(4 * v5 + *(_QWORD *)(a1 + 48)), 0, 4 * v5); v13 = 0; if ( *(int *)(a1 + 20) <= 0 ) { LABEL_17: memset(*(void **)(a1 + 48), 0, 4LL * *(int *)(a1 + 16)); memset(*(void **)(a1 + 104), 0, 8LL * *(int *)(a1 + 36)); return 0; } else { v14 = 0; while ( 1 ) { v15 = a5; if ( a5 >= *(_DWORD *)(a1 + 16) ) v15 = *(_DWORD *)(a1 + 16); sub_180062BA0(*(float **)(a1 + 48), (float *)(a2 + v14), 5, a3, v15, 1u, a4, 1.0, 1); memset((void *)(*(_QWORD *)(a1 + 48) + 4LL * v15), 0, 4LL * (*(_DWORD *)(a1 + 36) - v15)); result = sub_1800F5350(*(_QWORD *)(a1 + 72), *(_QWORD *)(a1 + 48), *(_QWORD *)(a1 + 104), 0, 1); if ( (_DWORD)result ) break; memmove( (void *)(*(_QWORD *)(a1 + 112) + 8LL * v13 * (*(_DWORD *)(a1 + 16) + 1)), *(const void **)(a1 + 104), 8LL * (*(_DWORD *)(a1 + 16) + 1)); a5 -= v15; ++v13; v14 += v12; if ( v13 >= *(_DWORD *)(a1 + 20) ) goto LABEL_17; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source