// // sub_6183F0 from 0x6183f0 to 0x618466 (118 bytes) // // 5 xrefs: // > sub_634F80 @ 0x63510a // > sub_634F80 @ 0x635204 // > sub_6353AC @ 0x635482 // > sub_6353AC @ 0x63565c // > sub_6353AC @ 0x635814 // // 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 // int __fastcall sub_6183F0(int *a1, int a2, void *a3, size_t a4, ssize_t *a5) { int v6; // r4 ssize_t v7; // r4 int result; // r0 _DWORD *v9; // r0 int v10; // r7 bool v11; // zf int v12; // r3 int v13; // r6 const char *v14; // r0 if ( a1[105] == a2 ) v6 = 105; else v6 = 104; v7 = send(a1[v6], a3, a4, 0x4000); if ( v7 == -1 ) { v9 = (_DWORD *)_errno(); v10 = *v9; v11 = *v9 == 11; if ( *v9 != 11 ) v11 = v10 == 4; v12 = v11; if ( v10 == 115 ) v12 |= 1u; if ( v12 ) { result = 81; v7 = 0; } else { v13 = *a1; v14 = (const char *)sub_6325A4(a1, *v9); sub_6180F8(v13, "Send failure: %s", v14); result = 55; *(_DWORD *)(*a1 + 34488) = v10; } } else { result = 0; } *a5 = v7; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source