Function at 0x41bc67
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax + 0x78]
test ecx, ecx
jne 0x41bc9d
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx + 0x25]
test eax, eax
je 0x41bca2
jmp 0x41bf36
mov dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x41bd07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2733
je 0x41bd07
mov edx, 1
test edx, edx
je 0x41bceb
mov dword [ebp - 0x68], 0
jmp 0x41bd02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.accept___error_n
call fcn.00419990
add esp, 8
mov dword [ebp - 0x68], eax
jmp 0x41bf36
mov ecx, dword [ebp - 0x64]
call fcn.0041cea1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41bd1d
jmp 0x41bf36
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x2050], eax
mov eax, dword [ebp - 0x20]
add eax, 0x48
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x40], 0x2000
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.0041cbd5
test eax, eax
jne 0x41bdb8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
je 0x41bd8e
push 1
mov ecx, dword [ebp - 0x50]
call fcn.0041d250
mov dword [ebp - 0x6c], eax
jmp 0x41bd95
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41bf36
mov byte [ebp - 0x34], 1
push 1
lea eax, [ebp - 0x34]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41be02
mov eax, 1
test eax, eax
je 0x41bdeb
mov dword [ebp - 0x70], 0
jmp 0x41be02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt___error_n
call fcn.00419990
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0x2710
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x48]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x58]
call fcn.006225d4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push ecx
push 0x782600
lea ecx, [ebp - 0x2c]
call fcn.0041d9d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00622566
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x64]
add ecx, 0x2c
call fcn.0041d480
push 0x18
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x60], 0
je 0x41bea5
push 0
mov ecx, dword [ebp - 0x60]
call fcn.0041db30
mov dword [ebp - 0x74], eax
jmp 0x41beac
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41bf08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41bf08
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.0041cc08
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041da40
jmp 0x41bf36
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x64]
call dword [ecx + 4]
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.0041c35c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041da40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret