Function at 0x1004de70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
cmp dword [edx], 0xffffffff
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
je 0x1004df28
mov ecx, dword [0x102868b0]
mov eax, dword [0x102868b4]
mov dword [ebp - 0x1c], 1
cmp ecx, 0x25c5e09b
jne 0x1004dee1
cmp eax, 0x8fafd21e
je 0x1004def0
cmp ecx, 0x257edf0d
jne 0x1004def4
cmp eax, 0xb2ab117a
jne 0x1004def4
mov al, 1
jmp 0x1004df05
mov eax, dword [0x102868a8]
mov ecx, 0x102868a8
push 1
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
movq xmm0, qword [ebp - 0x1c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x102868a8
movq qword [edi], xmm0
mov dword [edi + 8], 0x102868a8
jmp 0x1004e0e8
push 1
push 0
push 0
push dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x28], ecx
mov ecx, esi
sete dl
call fcn.1004bf30
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
jne 0x1004df5a
or ecx, ecx
mov dword [ebp - 0x28], ecx
jmp 0x1004df7b
cmp dword [ebp - 0x20], 0x17
jne 0x1004df7b
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x1b
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
cmp ecx, 0xffffffff
jne 0x1004df9a
movq xmm0, qword [esi]
movq qword [edi], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
jmp 0x1004e0e8
mov eax, dword [ebp - 0x34]
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 0x1004dfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x18]
jmp 0x1004dfce
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
movq xmm0, qword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x1c], xmm0
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
je 0x1004e034
movq xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [edi], xmm0
lea edx, [ebp - 0x21]
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [edi + 8], eax
lea eax, [ebp - 0x1c]
push eax
push 1
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0x1026c678
mov byte [ebp - 0x21], 0
call fcn.1004bfc0
add esp, 8
jmp 0x1004e0e8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0xffffffff
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
je 0x1004e059
sub ecx, 1
je 0x1004e053
mov byte [eax + 4], 0
jmp 0x1004e05d
mov byte [eax + 4], 0x20
jmp 0x1004e05d
mov byte [eax + 4], 0x10
push 0x10
call fcn.100e430a
mov edx, dword [ebp - 0x30]
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x2c], eax
movups xmmword [eax], xmm0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_void___struct_boost::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 - 0x2c], ecx
mov dword [edx + 0xc], eax
test ecx, ecx
je 0x1004e0c2
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1004e0c2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1004e0c2
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
movq qword [edi], xmm0
mov dword [edi + 8], 0x1026c678
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 0x18