Function at 0x405e10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0x2bf20
mov dword [ebp - 0x30], 0x3a98
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
call fcn.0040f380
mov dword [ebp - 0x3c], 1
mov eax, 1
test eax, eax
je 0x406174
push 0x32
push 0x23
call fcn.00406830
add esp, 8
mov dword [0x477db0], 0
push 0xf410
push 0
push 0x4595a0
call fcn.0041fdd0
add esp, 0xc
push 0xf400
push 0
push 0x4689b0
call fcn.0041fdd0
add esp, 0xc
push 0x477dc0
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp + 0x10]
push edx
call fcn.00405980
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x48], esp
lea eax, [ebp + 8]
push eax
call fcn.00405980
mov byte [ebp - 4], 1
call fcn.0040efb0
add esp, 0x14
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [0x459590], ecx
cmp dword [0x459590], 0xffffffff
jne 0x405f25
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405e76
push 4
lea edx, [ebp - 0x2c]
push edx
push 0x1006
push 0xffff
mov eax, dword [0x459590]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x405f85
cmp dword [0x459590], 0xffffffff
je 0x405f80
push 2
mov ecx, dword [0x459590]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [0x459590]
push edx
call fcn.0040ef70
add esp, 4
mov dword [0x459590], 0xffffffff
jmp 0x405e76
jmp 0x40616f
push 4
lea eax, [ebp - 0x30]
push eax
push 0x1005
push 0xffff
mov ecx, dword [0x459590]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x405fe0
cmp dword [0x459590], 0xffffffff
je 0x405fdb
push 2
mov edx, dword [0x459590]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [0x459590]
push eax
call fcn.0040ef70
add esp, 4
mov dword [0x459590], 0xffffffff
jmp 0x405e76
jmp 0x40616f
call fcn.004069c0
test eax, eax
jne 0x406007
mov ecx, dword [0x459590]
push ecx
call fcn.0040ef70
add esp, 4
mov dword [0x459590], 0xffffffff
jmp 0x405e76
push 0x459574
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x45958c], 1
push 0x459574
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x477db8], eax
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x477db4], eax
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x477dbc], eax
push 0x4066b0
call fcn.004062a0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4067a0
call fcn.004062a0
add esp, 4
mov dword [ebp - 0x20], eax
push 0x4068c0
call fcn.004062a0
add esp, 4
mov dword [ebp - 0x14], eax
push 0x4061b0
call fcn.004062a0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x4060ce
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x18], 0
je 0x4060e0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0
je 0x4060f2
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x20], 0
je 0x406104
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040ad10
call fcn.0040abe0
mov byte [ebp - 0xd], al
push 0
push 1
mov eax, dword [0x477dbc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
call fcn.00405da0
call fcn.00406a30
jmp 0x405e76
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00405ba0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret