Function at 0x404ce0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x426043
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d414]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov ebx, ecx
xor ecx, ecx
cmp eax, dword [ebp + 0x3c]
lea edi, [ebp + 0x3c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x16], cl
jne 0x404d3f
mov esi, dword [ebp + 0x40]
mov dword [esp + 0x1c], 2
jmp 0x404d4a
mov esi, dword [ebp + 0x48]
mov dword [esp + 0x1c], 0x17
cmp dword [esp + 0x74], ecx
je 0x404d61
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40502d
mov eax, dword [ebx + 0x38]
cmp eax, ecx
je 0x404d72
mov edx, dword [ebx + 0x3c]
sub edx, eax
sar edx, 3
jne 0x404d77
call fcn.0041a633
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x38]
push 0x2c
push 0x2c
push 0
push edx
call eax
mov ecx, dword [ebp + 8]
push 1
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 4
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 0x700b
push 0xffff
push esi
call edi
push 4
lea edx, [esp + 0x2c]
push edx
push 1
push 6
push esi
mov dword [esp + 0x3c], 1
call edi
push 4
lea eax, [esp + 0x2c]
push eax
push 8
push 0xffff
push esi
call edi
push esi
mov edi, ebp
call fcn.00404c70
lea eax, [ebp + 0xfc]
push eax
mov dword [esp + 0x30], vtable.AutoLock.0
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push 0x108
mov dword [esp + 0x68], ebx
call fcn.00419cca
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x64], 1
je 0x404e31
push eax
call fcn.004030b0
mov ebx, eax
mov byte [esp + 0x64], 0
mov dword [ebx + 8], esi
add dword [ebp + 0x50], 1
mov ecx, dword [ebp + 0x50]
lea eax, [ebp + 0x24]
adc dword [ebp + 0x54], 0
mov dword [ebx], ecx
mov edx, dword [ebp + 0x54]
mov dword [ebx + 4], edx
call fcn.0040a1d0
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
mov cx, word [eax]
mov word [ebx + 0x4d], cx
mov byte [ebx + 0x4c], 2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [ebx + 0x4f]
push ecx
call fcn.0041adc0
mov edx, dword [ebp]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0xc]
add esp, 0xc
lea esi, [ebx + 0x44]
push esi
push eax
mov ecx, ebp
call edx
test al, al
je 0x404ffb
cmp dword [ebp + 0x5c], 0
mov byte [esp + 0x17], 1
je 0x404ed3
or dword [esi], 2
mov edx, dword [ebx + 4]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push esi
push edx
mov edx, dword [ebx]
push edx
call eax
mov eax, dword [esi]
test al, 1
je 0x404ec3
mov byte [esp + 0x17], 0
jmp 0x404ed3
test al, 8
je 0x404ed3
mov byte [ebx + 0xe5], 1
mov byte [esp + 0x16], 1
mov eax, dword [ebp + 0xa0]
test eax, eax
je 0x404f2e
mov dword [ebx + 0x88], eax
lea esi, [ebp + 0xa4]
lea edi, [ebx + 0x8c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc0]
push 0xffffffffffffffff
push 0
lea edx, [ebp + 0xc4]
mov dword [ebx + 0xa8], ecx
push edx
lea ecx, [ebx + 0xac]
call fcn.0040fa40
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xe0]
push eax
lea ecx, [ebx + 0xc8]
call fcn.0040fa40
cmp dword [ebx + 0x88], 1
mov ecx, 7
lea edi, [esp + 0x3c]
lea esi, [ebx + 0x8c]
je 0x404f49
lea esi, [ebx + 0x6b]
cmp byte [esp + 0x17], 0
rep movsd dword es:[edi], dword [esi]
je 0x404ff4
cmp byte [ebx + 0xe5], 0
je 0x404f96
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push 1
push ebp
mov eax, ebx
mov dword [ebx + 0x40], 4
mov byte [ebx + 0x28], 1
call fcn.00404100
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
je 0x404ff4
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
call edx
jmp 0x404ff4
movzx eax, word [esp + 0x3c]
push 1
push 0
push 0
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404ff4
push 1
mov dword [ebx + 0x24], esi
mov ecx, dword [ebp + 8]
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x404ff4
mov cx, word [esp + 0x3c]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
sub cx, 0x17
neg cx
push edx
push eax
lea edx, [esp + 0x44]
sbb ecx, ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push esi
mov ecx, ebp
call fcn.00403e00
test al, al
jne 0x405015
cmp byte [esp + 0x16], 0
jne 0x405015
mov ecx, ebx
lea eax, [ebp + 0x24]
call fcn.0040a7f0
mov esi, ebx
call fcn.004031b0
push ebx
call fcn.00419cac
add esp, 4
mov dword [esp + 0x64], 0xffffffff
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.00403d10
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00419af5
add esp, 0x54
ret 0xc