// // sub_1800DA320 from 0x1800da320 to 0x1800da452 (306 bytes) // // 4 xrefs: // > sub_1800E2620 @ 0x1800e2925 // > @ 0x18018c774 // > @ 0x18018c7a8 // > @ 0x1801ff228 // // 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_1800DA320(_DWORD *a1) { __int64 result; // rax SOCKET v3; // rcx _QWORD **v4; // rax _QWORD **v5; // rbx _DWORD *v6; // rbx _DWORD *v7; // rcx struct _RTL_CRITICAL_SECTION *v8; // rcx result = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 40LL))(a1); if ( !(_DWORD)result ) { *((_BYTE *)a1 + 80) = 0; result = sub_1800DA550(a1); if ( !(_DWORD)result ) { v3 = *((_QWORD *)a1 + 1); if ( v3 != -1 ) sub_180109E80(v3); v4 = *((_QWORD ***)a1 + 2); if ( v4 == (_QWORD **)(a1 + 4) ) { LABEL_8: v6 = *((_DWORD **)a1 + 5); if ( v6 == a1 + 10 ) { LABEL_13: v8 = *((struct _RTL_CRITICAL_SECTION **)a1 + 8); if ( v8 ) FMOD_OS_CriticalSection_Free(v8, 0); result = sub_1800B7BC0(); if ( !(_DWORD)result ) { sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), a1); return 0; } } else { while ( 1 ) { v7 = v6 - 2; if ( !v6 ) v7 = nullptr; v6 = *((_DWORD **)v7 + 1); **((_QWORD **)v7 + 2) = v6; *(_QWORD *)(*((_QWORD *)v7 + 1) + 8LL) = *((_QWORD *)v7 + 2); *((_QWORD *)v7 + 2) = v7 + 2; *((_QWORD *)v7 + 1) = v7 + 2; result = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 16LL))(v7); if ( (_DWORD)result ) break; if ( v6 == a1 + 10 ) goto LABEL_13; } } } else { while ( 1 ) { v5 = (_QWORD **)*v4; *v4[1] = *v4; (*v4)[1] = v4[1]; v4[1] = v4; *v4 = v4; result = sub_1801128D0(v4); if ( (_DWORD)result ) break; v4 = v5; if ( v5 == (_QWORD **)(a1 + 4) ) goto LABEL_8; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source