Function at 0x1001b270
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b396
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push esi
push edi
push ecx
lea edi, [ebp - 0x120]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100b5100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x248
push eax
lea ecx, [ebp - 0x1c]
call fcn.100035e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x200], 0xffffffff
je 0x1001b64f
mov dword [ebp - 0x28], 0
mov esi, esp
push 0
push 0
push 0
push 0
push 0
push 4
lea edx, [ebp - 0x28]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x200]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.1003fe96
test eax, eax
je 0x1001b3e5
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xcc], ecx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.1000da30
add esp, 8
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xd4]
push ecx
push str.CSocketClient::StopAcceptingConnections_____WSAIoctl__
lea edx, [ebp - 0x5c]
push edx
call fcn.100026b0
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov esi, esp
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe4], eax
mov edi, esp
mov ecx, dword [ebp - 0xe4]
call dword [0x1009f258]
cmp edi, esp
call fcn.1003fe96
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0xe4]
cmp esi, esp
call fcn.1003fe96
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.10003880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003880
mov ecx, 1
mov word [ebp - 0x64], cx
xor edx, edx
mov word [ebp - 0x62], dx
mov esi, esp
push 4
lea eax, [ebp - 0x64]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x200]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.1003fe96
cmp eax, 0xffffffff
jne 0x1001b4f8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0xe8], edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1000da30
add esp, 8
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf0]
push edx
push str.CSocketClient::setsockopt__SO_LINGER____
lea eax, [ebp - 0x98]
push eax
call fcn.100026b0
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov esi, esp
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x100], ecx
mov edi, esp
mov ecx, dword [ebp - 0x100]
call dword [0x1009f258]
cmp edi, esp
call fcn.1003fe96
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x100]
cmp esi, esp
call fcn.1003fe96
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.10003880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.10003880
mov ecx, dword [ebp - 0x14]
add ecx, 0x240
call fcn.1001d0d0
mov ecx, dword [ebp - 0x14]
add ecx, 0x204
call fcn.1001d720
mov esi, esp
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x200]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.1003fe96
test eax, eax
je 0x1001b60d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x104], eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.1000da30
add esp, 8
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10c]
push eax
push str.CSocketClient::StopAcceptingConnections_____closesocket__
lea ecx, [ebp - 0xc8]
push ecx
call fcn.100026b0
add esp, 0xc
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov esi, esp
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x11c], edx
mov edi, esp
mov ecx, dword [ebp - 0x11c]
call dword [0x1009f258]
cmp edi, esp
call fcn.1003fe96
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x11c]
cmp esi, esp
call fcn.1003fe96
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc8]
call fcn.10003880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.10003880
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x200], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x120], eax
mov edi, esp
mov ecx, dword [ebp - 0x120]
call dword [0x1009f258]
cmp edi, esp
call fcn.1003fe96
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x120]
cmp esi, esp
call fcn.1003fe96
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10003a30
push edx
mov ecx, ebp
push eax
lea edx, [0x1001b698]
call fcn.1003fe42
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003f9a0
add esp, 0x120
cmp ebp, esp
call fcn.1003fe96
mov esp, ebp
pop ebp
ret