// // sub_1800C8380 from 0x1800c8380 to 0x1800c88ba (1338 bytes) // // 10 xrefs: // > @ 0x18016c4f8 // > @ 0x18018ae8c // > @ 0x18018aea4 // > @ 0x18018aebc // > @ 0x18018aed4 // > @ 0x18018aeec // > @ 0x18018af04 // > @ 0x18018af38 // > @ 0x18018af54 // > @ 0x1801fe1a8 // // 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:06 +0000 // __int64 __fastcall sub_1800C8380(__int64 a1) { __int64 v2; // rsi __int64 result; // rax bool v4; // zf __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rdx __int64 v13; // rax __int64 v14; // rcx __int64 v15; // rcx __int64 v16; // rcx __int64 v17; // rcx __int64 v18; // rcx __int64 v19; // rdx __int64 v20; // rax __int64 v21; // rcx __int64 v22; // rax __int64 v23; // rcx __int64 v24; // rsi __int64 v25; // rdi __int64 v26; // rdx __int64 v27; // rcx __int64 v28; // rax __int64 v29; // [rsp+50h] [rbp+8h] BYREF __int64 v30; // [rsp+58h] [rbp+10h] BYREF v2 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL); result = sub_1800C7A00(a1); if ( (_DWORD)result ) return result; if ( (*(_DWORD *)(a1 + 56) & 0x200) != 0 ) { v16 = *(_QWORD *)(a1 + 752); if ( v16 ) { result = sub_180096490(v16, 0, 0, 4); if ( (_DWORD)result ) return result; } v17 = *(_QWORD *)(a1 + 760); if ( v17 ) { result = sub_180096490(v17, 0, 0, 4); if ( (_DWORD)result ) return result; } if ( *(_QWORD *)(a1 + 664) ) { result = sub_180096490(a1 + 112, 0, 0, 4); if ( (_DWORD)result ) return result; } result = sub_1800FC4C0( *(_QWORD *)(a1 + 8), *(unsigned int *)(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 96LL) + 164LL), &v29); if ( (_DWORD)result ) return result; result = sub_180055340(v29, &v30); if ( (_DWORD)result ) return result; v18 = v30; v19 = *(_QWORD *)(a1 + 40); *(_QWORD *)(a1 + 744) = v30; result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v18 + 32LL))(v18, v19, a1); if ( (_DWORD)result ) return result; if ( *(float *)(a1 + 104) < 100.0 ) *(_DWORD *)(a1 + 104) = 1120403456; v20 = *(_QWORD *)(a1 + 752); v21 = *(_QWORD *)(a1 + 24); if ( v20 ) { *(_QWORD *)(v20 + 512) = v21; result = sub_1800923A0(v2, *(_QWORD *)(a1 + 752), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; v22 = *(_QWORD *)(a1 + 760); v23 = *(_QWORD *)(a1 + 24); if ( v22 ) { *(_QWORD *)(v22 + 512) = v23; result = sub_1800923A0(*(_QWORD *)(a1 + 752), *(_QWORD *)(a1 + 760), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; *(_QWORD *)(*(_QWORD *)(a1 + 744) + 512LL) = *(_QWORD *)(a1 + 24); result = sub_1800923A0(*(_QWORD *)(a1 + 760), *(_QWORD *)(a1 + 744), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } else { *(_QWORD *)(*(_QWORD *)(a1 + 744) + 512LL) = v23; result = sub_1800923A0(*(_QWORD *)(a1 + 752), *(_QWORD *)(a1 + 744), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } } else { *(_QWORD *)(*(_QWORD *)(a1 + 744) + 512LL) = v21; result = sub_1800923A0(v2, *(_QWORD *)(a1 + 744), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } } else { v4 = (*(_DWORD *)(a1 + 60) & 0x10000) == 0; *(_QWORD *)(a1 + 744) = 0; if ( !v4 ) _InterlockedOr((volatile signed __int32 *)(a1 + 212), 0x100u); v5 = *(_QWORD *)(a1 + 752); if ( v5 ) { result = sub_180096490(v5, 0, 0, 4); if ( (_DWORD)result ) return result; } v6 = *(_QWORD *)(a1 + 760); if ( v6 ) { result = sub_180096490(v6, 0, 0, 4); if ( (_DWORD)result ) return result; } result = sub_180096490(a1 + 112, 0, 0, 4); if ( (_DWORD)result ) return result; result = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 136LL))( a1, *(unsigned int *)(*(_QWORD *)(a1 + 40) + 76LL), *(unsigned int *)(*(_QWORD *)(a1 + 40) + 80LL)); if ( (_DWORD)result ) return result; v7 = *(_QWORD *)(a1 + 112); v8 = *(_QWORD *)(a1 + 40); *(float *)(a1 + 104) = -*(float *)(a1 + 100); (*(void (__fastcall **)(__int64, __int64, __int64))(v7 + 32))(a1 + 112, v8, a1); v9 = *(_QWORD *)(a1 + 752); if ( v9 ) sub_18009B6A0(v9, 0, 1u); v10 = *(_QWORD *)(a1 + 760); if ( v10 ) sub_18009B6A0(v10, 0, 1u); v11 = *(_QWORD *)(a1 + 752); v12 = *(_QWORD *)(a1 + 24); if ( v11 ) { *(_QWORD *)(v11 + 512) = v12; result = sub_1800923A0(v2, *(_QWORD *)(a1 + 752), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; v13 = *(_QWORD *)(a1 + 760); v14 = *(_QWORD *)(a1 + 24); if ( v13 ) { *(_QWORD *)(v13 + 512) = v14; result = sub_1800923A0(*(_QWORD *)(a1 + 752), *(_QWORD *)(a1 + 760), nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; v15 = *(_QWORD *)(a1 + 760); *(_QWORD *)(a1 + 624) = *(_QWORD *)(a1 + 24); result = sub_1800923A0(v15, a1 + 112, nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } else { *(_QWORD *)(a1 + 624) = v14; result = sub_1800923A0(*(_QWORD *)(a1 + 752), a1 + 112, nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } } else { *(_QWORD *)(a1 + 624) = v12; result = sub_1800923A0(v2, a1 + 112, nullptr, 0, 0, nullptr); if ( (_DWORD)result ) return result; } } if ( (*(_DWORD *)(a1 + 60) & 0x10000) != 0 ) { LABEL_54: v28 = *(_QWORD *)(a1 + 24); *(_DWORD *)(a1 + 776) = -1; *(_DWORD *)(a1 + 780) = *(_DWORD *)(*(_QWORD *)(v28 + 32) + 492LL); return 0; } else { result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 24) + 288LL))( *(_QWORD *)(a1 + 24), 4294967293LL, a1 + 768); if ( !(_DWORD)result ) { v24 = 0; v25 = 336; while ( 1 ) { v26 = *(_QWORD *)(a1 + 768); if ( !v26 ) return 31; v27 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + v24 + 73784); if ( v27 ) { v29 = *(_QWORD *)(v25 + *(_QWORD *)(a1 + 24)); if ( !v29 ) { result = sub_1800923A0(v27, v26, &v29, 2, 0, nullptr); if ( (_DWORD)result ) return result; *(_QWORD *)(v25 + *(_QWORD *)(a1 + 24)) = v29; } } v25 += 8; v24 += 24; if ( v25 >= 368 ) goto LABEL_54; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source