Function at 0x4158b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593abd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x78]
test ecx, ecx
jne 0x4158ec
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x25]
test eax, eax
je 0x4158f1
jmp 0x415b85
mov dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x415956
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2733
je 0x415956
mov edx, 1
test edx, edx
je 0x41593a
mov dword [ebp - 0x6c], 0
jmp 0x415951
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.accept___error_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x6c], eax
jmp 0x415b85
mov ecx, dword [ebp - 0x10]
call fcn.00416df0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41596c
jmp 0x415b85
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
add edx, 0x58
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x54], edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x50], 0x2000
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00416af0
test eax, eax
jne 0x4159f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x4159c6
push 1
mov ecx, dword [ebp - 0x58]
call fcn.00415ba0
mov dword [ebp - 0x70], eax
jmp 0x4159cd
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x415b85
mov byte [ebp - 0x34], 1
push 1
lea edx, [ebp - 0x34]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x415a3a
mov edx, 1
test edx, edx
je 0x415a23
mov dword [ebp - 0x74], 0
jmp 0x415a3a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt___error_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x2710
push 0
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x98000004
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x60]
call fcn.0057731e
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
push 0x6068a8
lea ecx, [ebp - 0x48]
call fcn.004177d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.005772b0
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00417160
push 0x18
call fcn.0057284c
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x68], 0
je 0x415add
push 0
mov ecx, dword [ebp - 0x68]
call fcn.00417940
mov dword [ebp - 0x78], eax
jmp 0x415ae4
mov dword [ebp - 0x78], 0
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], eax
push str.PostQueuedCompletionStatus
push 0x5a95f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x74]
push ecx
call dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x415b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x415b57
push 1
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00416b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00417840
jmp 0x415b85
push 1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x10]
call dword [eax + 4]
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00416030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00417840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret