//
// sub_180109E80 from 0x180109e80 to 0x180109ebb (59 bytes)
//
// 10 xrefs:
// > sub_1800B4680 @ 0x1800b4b89
// > sub_1800B4680 @ 0x1800b4be0
// > sub_1800B58C0 @ 0x1800b58d0
// > sub_1800B58F0 @ 0x1800b5906
// > sub_1800D9EB0 @ 0x1800d9ff5
// > sub_1800DA320 @ 0x1800da359
// > sub_1800DA550 @ 0x1800da82c
// > sub_1801122A0 @ 0x180112325
// > ??> @ 0x180201730
// > ??> @ 0x18020173c
//
// 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:32 +0000
//
__int64 __fastcall sub_180109E80(SOCKET s)
{
if ( s == -1 )
return 0;
shutdown(s, 2);
if ( closesocket(s) != -1 )
return 0;
else
return 43;
}