// // sub_180050790 from 0x180050790 to 0x180050926 (406 bytes) // // 4 xrefs: // > sub_180052A90 @ 0x180052b3c // > @ 0x180181bc4 // > @ 0x180181bd4 // > @ 0x1801f8964 // // 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:53:17 +0000 // __int64 __fastcall sub_180050790(__int64 a1, __int64 a2, __int64 a3) { _QWORD *v3; // rax __int64 v7; // rbp __int64 v8; // rdi __int64 v9; // r12 __int64 result; // rax int v11; // eax int v12; // edi __int64 v13; // r13 int v14; // ecx int v15; // eax __int64 v16; // rax __int64 v17; // rsi __int64 v18; // r8 v3 = *(_QWORD **)(a2 + 80); v7 = *v3; v8 = v3[14]; v9 = *(_QWORD *)(*v3 + 32LL); result = sub_180049380(a1, a2); if ( (_DWORD)result ) return result; sub_180048340(a2 + 8, *(_QWORD *)a3, *(_DWORD *)(a3 + 8)); if ( (unsigned int)sub_180048210((int *)(a2 + 8), 1u) ) return 4294967161LL; v11 = sub_180048210((int *)(a2 + 8), *(_DWORD *)(v8 + 24)); if ( v11 == -1 ) return 4294967160LL; *(_DWORD *)(a2 + 56) = v11; v12 = 0; v13 = v9 + 8LL * v11; v14 = **(_DWORD **)(v13 + 32); *(_DWORD *)(a2 + 44) = v14; if ( !v14 ) { *(_DWORD *)(a2 + 40) = 0; *(_DWORD *)(a2 + 48) = 0; goto LABEL_9; } *(_DWORD *)(a2 + 40) = sub_180048210((int *)(a2 + 8), 1u); v15 = sub_180048210((int *)(a2 + 8), 1u); *(_DWORD *)(a2 + 48) = v15; if ( v15 == -1 ) return 4294967160LL; v14 = *(_DWORD *)(a2 + 44); LABEL_9: *(_QWORD *)(a2 + 64) = *(_QWORD *)(a3 + 24); *(_QWORD *)(a2 + 72) = *(_QWORD *)(a3 + 32); *(_DWORD *)(a2 + 60) = *(_DWORD *)(a3 + 16); *(_DWORD *)(a2 + 52) = *(_DWORD *)(v9 + 4LL * v14); v16 = sub_1800492E0(a1, a2, 8 * *(_DWORD *)(v7 + 4)); *(_QWORD *)a2 = v16; if ( v16 ) { if ( *(int *)(v7 + 4) <= 0 ) { LABEL_14: v18 = *(int *)(*(_QWORD *)(v13 + 32) + 12LL); return (*((__int64 (__fastcall **)(__int64, __int64, _QWORD))*(&off_180166E38 + *(int *)(v9 + 4 * v18 + 544)) + 4))( a1, a2, *(_QWORD *)(v9 + 8 * v18 + 800)); } v17 = 0; while ( 1 ) { *(_QWORD *)(v17 + *(_QWORD *)a2) = sub_1800492E0(a1, a2, 4 * *(_DWORD *)(a2 + 52)); if ( !*(_QWORD *)(v17 + *(_QWORD *)a2) ) break; ++v12; v17 += 8; if ( v12 >= *(_DWORD *)(v7 + 4) ) goto LABEL_14; } } return 4294967157LL; }