Function at 0x41c070
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 0x4b435d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x4e0138]
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 0x41c138
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e33b0]
cmp eax, dword [ecx + 4]
jle 0x41c119
push 0x4e33b0
call fcn.004882de
add esp, 4
cmp dword [0x4e33b0], 0xffffffff
jne 0x41c119
push 0x4bc0c0
call fcn.004885ae
add esp, 4
push 0x4e33b0
call fcn.0048828d
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], 0x4e0bd8
mov dword [esi], 1
mov dword [esi + 4], 0x4e0bd8
jmp 0x41c2e3
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.0041b110
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
jne 0x41c168
or ecx, ecx
mov dword [ebp - 0x20], ecx
jmp 0x41c189
cmp dword [ebp - 0x1c], 0x17
jne 0x41c189
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 0x41c1a5
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
jmp 0x41c2d9
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 0x41c217
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx]
mov ecx, dword [0x4e33a4]
cmp ecx, dword [edx + 4]
jle 0x41c210
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41c20d
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, 0x4e0be8
jmp 0x41c21e
xor eax, eax
mov ecx, 0x4e0bf0
mov dword [edi + 4], ecx
mov dword [edi], eax
test eax, eax
jne 0x41c19d
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 0x41c253
sub eax, 1
je 0x41c24d
mov byte [ecx + 4], 0
jmp 0x41c257
mov byte [ecx + 4], 0x20
jmp 0x41c257
mov byte [ecx + 4], 0x10
push 0x10
call fcn.00488342
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 0x41c2c7
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x41c2c7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x41c2c7
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [edi + 4], 0x4e0bf0
mov dword [edi], eax
mov dword [esi + 4], 0x4e0bf0
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.0041bc20
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.0048824f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18