Function at 0x405330
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42717d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp dword [edx], 0xffffffff
mov esi, dword [ebx + 8]
mov dword [ebp - 0x24], edi
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
je 0x4053f8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x435270]
cmp eax, dword [ecx + 4]
jle 0x4053d9
push 0x435270
call fcn.0040e156
add esp, 4
cmp dword [0x435270], 0xffffffff
jne 0x4053d9
push 0x427d00
call fcn.0040e498
add esp, 4
push 0x435270
call fcn.0040e10c
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], 0x4339a8
mov dword [esi], 1
mov dword [esi + 4], 0x4339a8
jmp 0x4055a3
push 1
push 0
push 0
push dword [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov ecx, edi
sete dl
call fcn.00404690
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
jne 0x405428
or ecx, ecx
mov dword [ebp - 0x20], ecx
jmp 0x405449
cmp dword [ebp - 0x1c], 0x17
jne 0x405449
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
cmp ecx, 0xffffffff
jne 0x405465
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
jmp 0x405599
mov eax, dword [ebp - 0x30]
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x4054d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx]
mov ecx, dword [0x43526c]
cmp ecx, dword [edx + 4]
jle 0x4054d0
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x4054cd
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, 0x4339b0
jmp 0x4054de
xor eax, eax
mov ecx, 0x4339b8
mov dword [edi + 4], ecx
mov dword [edi], eax
test eax, eax
jne 0x40545d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
sub eax, 1
je 0x405513
sub eax, 1
je 0x40550d
mov byte [ecx + 4], 0
jmp 0x405517
mov byte [ecx + 4], 0x20
jmp 0x405517
mov byte [ecx + 4], 0x10
push 0x10
call fcn.0040e22c
mov edx, dword [ebp - 0x2c]
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x28], eax
movups xmmword [eax], xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_void___struct_asio::detail::socket_ops::noop_deleter_.0
mov dword [eax + 0xc], 0
mov ecx, dword [edx + 0xc]
mov dword [edx + 8], 0
mov dword [ebp - 0x28], ecx
mov dword [edx + 0xc], eax
test ecx, ecx
je 0x405587
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x405587
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x405587
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [edi + 4], 0x4339b8
mov dword [edi], eax
mov dword [esi + 4], 0x4339b8
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00405050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18