//
// sub_180109DF0 from 0x180109df0 to 0x180109e80 (144 bytes)
//
// 2 xrefs:
// > sub_1800DA550 @ 0x1800da5dd
// > ??> @ 0x180201730
//
// 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_180109DF0(SOCKET a1, __int64 a2, SOCKET *a3)
{
SOCKET v4; // rax
SOCKET v5; // rbx
int Error; // eax
unsigned int v7; // ecx
__int64 result; // rax
v4 = accept(a1, nullptr, nullptr);
v5 = v4;
if ( v4 == -1 )
{
Error = WSAGetLastError();
v7 = 43;
if ( Error == 10035 )
return 45;
return v7;
}
else
{
result = sub_18010A300(v4);
if ( !(_DWORD)result )
*a3 = v5;
}
return result;
}