// // sub_1800D01B0 from 0x1800d01b0 to 0x1800d037c (460 bytes) // // 4 xrefs: // > sub_1800CE7C0 @ 0x1800ce828 // > sub_1800CF850 @ 0x1800cf8e5 // > sub_1801026E0 @ 0x180102758 // > @ 0x1801fea0c // // 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:09 +0000 // __int64 __fastcall sub_1800D01B0(__int64 a1, __int64 a2, __int64 a3) { char v3; // di unsigned int v4; // esi __int64 result; // rax int v7; // eax unsigned int v8; // eax int v9; // eax __int64 v10; // rax int v11; // r8d __int64 v12; // rax __int64 v13; // rdx __int64 v14; // rcx _BYTE *i; // rax _BYTE v16[24]; // [rsp+20h] [rbp-18h] BYREF char v17; // [rsp+58h] [rbp+20h] BYREF v3 = a3; v4 = a2; result = sub_180012140((__int64 *)a1, a2, a3, 0); if ( (_DWORD)result ) return result; if ( !*(_QWORD *)(a1 + 472) ) return 30; result = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 24LL))(a1, &v17); if ( (_DWORD)result ) return result; if ( v17 ) goto LABEL_10; result = (*(__int64 (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 472) + 88LL))(*(_QWORD *)(a1 + 472), &v17); if ( (_DWORD)result ) return result; if ( v17 || (v7 = *(_DWORD *)(a1 + 72), (v7 & 0x40000) != 0) ) { LABEL_10: v9 = *(_DWORD *)(a1 + 72); if ( (v9 & 0x400000) != 0 ) { if ( (v9 & 0x20000) == 0 ) { *(_DWORD *)(a1 + 72) = v9 & 0xFF7BFFFF | 0x800000; result = sub_1800D04F0(a1); if ( (_DWORD)result ) return result; } v8 = *(_DWORD *)(a1 + 72); goto LABEL_16; } v8 = v9 | 0x400000; } else { v8 = v7 & 0xFF3FFFFF; } *(_DWORD *)(a1 + 72) = v8; LABEL_16: if ( (v8 & 0x40000) != 0 ) return 0; result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v16); if ( !(_DWORD)result ) { if ( (v16[0] & 8) != 0 ) goto LABEL_36; if ( !v3 ) v3 = (*(_BYTE *)(*(_QWORD *)(a1 + 472) + 60LL) & 0x60) == 96; result = sub_1800107D0((__int64 *)a1, v4, v3); if ( !(_DWORD)result ) { LABEL_36: result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 472) + 56LL))(*(_QWORD *)(a1 + 472), v4); if ( !(_DWORD)result ) { result = sub_1800D0760(a1, 0); if ( !(_DWORD)result ) { v10 = *(_QWORD *)(a1 + 472); if ( !v10 || *(char *)(v10 + 60) >= 0 ) { v11 = *(_DWORD *)(a1 + 72); if ( (v11 & 0x1000004) != 0 ) goto LABEL_32; v12 = *(_QWORD *)(a1 + 8); v13 = *(int *)(v12 + 69104); if ( v13 > 0 ) { v14 = 0; for ( i = (_BYTE *)(v12 + 68316); !*i; i += 112 ) { if ( ++v14 >= v13 ) return 0; } LABEL_32: *(_DWORD *)(a1 + 72) = v11 & 0xFEFFFFFB; result = sub_1800D04F0(a1); if ( (_DWORD)result ) return result; } } return 0; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source