Function at 0x10016e70
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 0x100451fd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1005c350], 1
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x38], eax
je 0x10016f48
mov ecx, dword [0x1005c340]
push str.asio::listen_called_from_the_wrong_state
push 2
call fcn.10012030
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005bd5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005bdb4]
cmp eax, dword [ecx + 4]
jle 0x10016f36
push 0x1005bdb4
call fcn.1004207b
add esp, 4
cmp dword [0x1005bdb4], 0xffffffff
jne 0x10016f36
push 0x10048ec0
mov dword [0x1005bd9c], 0x1005bd98
mov dword [0x1005bd98], 0x1004b88c
call fcn.10042798
add esp, 4
push 0x1005bdb4
call fcn.10042031
add esp, 4
mov dword [edi], 9
mov dword [edi + 4], 0x1005bd98
jmp 0x1001732f
mov ecx, dword [0x1005c348]
push str.asio::listen
push 0x400
call fcn.1000f930
mov eax, dword [ebp - 0x38]
mov esi, 2
mov ecx, 0x17
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
cmp word [eax], si
mov eax, dword [0x1005c320]
cmovne esi, ecx
mov ecx, dword [eax]
lea edx, [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edx
push eax
push 6
push 1
push esi
push edx
lea eax, [ebp - 0x34]
add ecx, 0x14
push eax
call fcn.1000adf0
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x10016fb2
cmp dword [eax], 0
setne cl
jmp 0x10016fb5
and cl, 1
test cl, cl
jne 0x10016ff9
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x50], 0
mov dword [eax + 0x1c], esi
mov esi, 2
mov dword [ebp - 0x54], esi
movups xmm0, xmmword [ebp - 0x54]
mov byte [eax + 0x20], cl
movups xmmword [eax + 0x24], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [eax + 0x34], xmm0
mov dword [eax + 0x3c], 0
jmp 0x10016ffe
mov esi, 2
cmp dword [ebp - 0x18], 1
jne 0x1001700d
cmp dword [ebp - 0x20], 0
setne al
jmp 0x10017012
mov al, byte [ebp - 0x18]
and al, 1
test al, al
je 0x10017055
mov ecx, dword [0x1005c320]
cmp dword [ecx + 4], 0xffffffff
je 0x10017027
call fcn.1001c6f0
lea eax, [ebp - 0x20]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1005c278
call fcn.10014cb0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.10001c60
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1001732f
xor eax, eax
cmp byte [0x1005c33c], al
setne al
mov dword [ebp - 0x24], eax
mov eax, dword [0x1005c320]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1001708e
mov edx, 0x2719
lea ecx, [ebp - 0x34]
call fcn.10007d20
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
jmp 0x100170b2
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x20]
setne dl
call fcn.10008860
mov eax, dword [ebp - 0x18]
cmp eax, 1
jne 0x100170c0
cmp dword [ebp - 0x20], 0
setne al
jmp 0x100170c5
mov al, byte [ebp - 0x18]
and al, 1
test al, al
je 0x10017108
mov ecx, dword [0x1005c320]
cmp dword [ecx + 4], 0xffffffff
je 0x100170da
call fcn.1001c6f0
lea eax, [ebp - 0x20]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1005c278
call fcn.10014cb0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.10001c60
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1001732f
mov ecx, dword [0x1005c2c4]
test ecx, ecx
je 0x100171c4
mov edx, dword [0x1005c324]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test edx, edx
je 0x1001713e
lock inc dword [edx + 4]
mov edx, dword [0x1005c324]
mov ecx, dword [0x1005c2c4]
mov eax, dword [0x1005c320]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x1001715a
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x30]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x10017196
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10017196
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10017196
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
test eax, eax
je 0x100171c4
mov ecx, dword [0x1005c320]
cmp dword [ecx + 4], 0xffffffff
je 0x100171b6
call fcn.1001c6f0
push edi
sub esp, 8
call fcn.1001eb10
jmp 0x1001732f
mov eax, dword [0x1005c320]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
movzx esi, word [edx]
cmp ecx, 0xffffffff
jne 0x100171f5
mov edx, 0x2719
lea ecx, [ebp - 0x34]
call fcn.10007d20
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
jmp 0x10017221
cmp esi, 2
mov dword [ebp - 0x24], 0x1c
mov eax, 0x10
cmovne eax, dword [ebp - 0x24]
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
lea ecx, [ebp - 0x20]
setne dl
call fcn.10008860
mov eax, dword [ebp - 0x18]
cmp eax, 1
jne 0x1001722f
cmp dword [ebp - 0x20], 0
setne al
jmp 0x10017234
mov al, byte [ebp - 0x18]
and al, 1
test al, al
je 0x1001727a
mov ecx, dword [0x1005c320]
cmp dword [ecx + 4], 0xffffffff
je 0x10017249
call fcn.1001c6f0
lea eax, [ebp - 0x20]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1005c278
call fcn.10014cb0
mov edx, 2
lea ecx, [ebp - 0x30]
call fcn.10001c60
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1001732f
mov eax, dword [0x1005c320]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x100172a5
mov edx, 0x2719
lea ecx, [ebp - 0x34]
call fcn.10007d20
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
jmp 0x100172c2
push dword [0x1005c338]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
lea ecx, [ebp - 0x20]
setne dl
call fcn.10008860
mov eax, dword [ebp - 0x18]
cmp eax, 1
jne 0x100172d0
cmp dword [ebp - 0x20], 0
setne al
jmp 0x100172d5
mov al, byte [ebp - 0x18]
and al, 1
test al, al
je 0x10017318
mov ecx, dword [0x1005c320]
cmp dword [ecx + 4], 0xffffffff
je 0x100172ea
call fcn.1001c6f0
lea eax, [ebp - 0x20]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1005c278
call fcn.10014cb0
mov edx, 2
lea ecx, [ebp - 0x30]
call fcn.10001c60
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1001732f
mov dword [0x1005c350], 2
mov dword [edi], 0
mov dword [edi + 4], 0x10058030
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.10041f5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8