Function at 0x4144f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61973d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x90]
test ecx, ecx
jne 0x41452f
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x41]
test eax, eax
je 0x414534
jmp 0x4147b6
mov dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x414599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x2733
je 0x414599
mov edx, 1
test edx, edx
je 0x41457d
mov dword [ebp - 0x68], 0
jmp 0x414594
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.accept___error_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x68], eax
jmp 0x4147b6
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00415840
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4145b3
jmp 0x4147b6
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0x30]
add eax, 0x58
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x50], 0x19000
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x8c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00415520
test eax, eax
jne 0x414633
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x414610
push 1
mov ecx, dword [ebp - 0x54]
call fcn.004147d0
mov dword [ebp - 0x6c], eax
jmp 0x414617
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4147b6
mov byte [ebp - 0x34], 1
push 4
lea eax, [ebp - 0x34]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41467d
mov eax, 1
test eax, eax
je 0x414666
mov dword [ebp - 0x70], 0
jmp 0x41467d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt___error_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x40], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa0]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], 0x2710
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x40]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x5c]
call fcn.005f79ea
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
lea ecx, [ebp - 0x48]
call fcn.004164a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.005f797c
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00415e50
push 0x18
call fcn.005f2f36
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], 0
je 0x414722
push 0
mov ecx, dword [ebp - 0x64]
call fcn.00416610
mov dword [ebp - 0x74], eax
jmp 0x414729
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x414788
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x414788
push 1
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00415560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00416510
jmp 0x4147b6
push 1
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00414bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00416510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret