Function at 0x10012b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b11d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101aa2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0xffffffff
je 0x10012c09
mov ecx, dword [0x101ace40]
mov eax, dword [0x101ace44]
cmp ecx, 0x257edfd1
jne 0x10012bbd
cmp eax, 0xb2ab117a
je 0x10012bcc
cmp ecx, 0x257edfd0
jne 0x10012bd0
cmp eax, 0xb2ab117a
jne 0x10012bd0
mov al, 1
jmp 0x10012be1
mov eax, dword [0x101ace38]
mov ecx, 0x101ace38
push 1
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
mov eax, dword [ebp + 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x101ace38
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
jmp 0x10012e13
push 1
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, dword [ebp + 0x1c]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 0xc], esi
mov ecx, edi
sete dl
call fcn.10011660
cmp esi, 0xffffffff
jne 0x10012c3f
or esi, esi
mov dword [ebp + 0xc], esi
jmp 0x10012c5d
cmp dword [ebp + 0x10], 0x17
jne 0x10012c5d
push 4
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x10012c75
movq xmm0, qword [edi]
mov ecx, dword [edi + 8]
jmp 0x10012e13
mov eax, dword [ebp - 0x10]
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x10012cfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x101ace90]
mov ecx, dword [0x101ace94]
mov dword [ebp + 0x10], eax
cmp edx, 0x257edfd1
jne 0x10012cb2
cmp ecx, 0xb2ab117a
je 0x10012cc2
cmp edx, 0x257edfd0
jne 0x10012cc9
cmp ecx, 0xb2ab117a
jne 0x10012cc9
test eax, eax
setne al
jmp 0x10012cd9
push eax
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp + 0x10]
movzx eax, al
mov dword [ebp - 0x1c], ecx
add eax, 2
mov dword [ebp - 0x18], 0x101ace88
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], eax
jmp 0x10012d08
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
movq xmm0, qword [edi]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
test al, 1
je 0x10012d79
cmp eax, 1
jne 0x10012d2b
cmp dword [ebp - 0x1c], 0
setne al
test al, al
je 0x10012d79
mov esi, dword [ebp + 8]
lea edx, [ebp + 0xb]
movq xmm0, qword [edi]
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 0xc]
movq qword [esi], xmm0
xorps xmm0, xmm0
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
push 1
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp + 0xb], 0
call fcn.100116e0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0xffffffff
mov dword [ebx], esi
sub eax, 1
je 0x10012d9b
sub eax, 1
je 0x10012d95
mov byte [ebx + 4], 0
jmp 0x10012d9f
mov byte [ebx + 4], 0x20
jmp 0x10012d9f
mov byte [ebx + 4], 0x10
push 0x10
call fcn.10045ca9
mov dword [ebp + 0x1c], eax
xorps xmm0, xmm0
add esp, 4
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_boost::asio::detail::socket_ops::noop_deleter_.0
mov dword [eax + 0xc], 0
mov esi, dword [ebx + 0xc]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], eax
test esi, esi
je 0x10012e07
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10012e07
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10012e07
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xorps xmm0, xmm0
xor ecx, ecx
movq qword [edi], xmm0
mov dword [edi + 8], ecx
mov eax, dword [ebp + 8]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18