Function at 0x101577e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021a905
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x10282800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xd8], 1
je 0x10157852
mov ecx, dword [edi + 0xc8]
push str.asio::listen_called_from_the_wrong_state
push 2
call fcn.10136ce0
lea eax, [ebp - 0x2c]
push 9
push eax
call fcn.10123350
add esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0xd0]
push str.asio::listen
push 0x400
call fcn.10136ad0
mov edx, dword [ebp + 8]
mov ecx, 2
mov eax, dword [edi + 0xa8]
mov esi, 0x17
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x10282038
cmp word [edx], cx
mov edx, dword [eax]
cmovne ecx, esi
mov dword [ebp - 0x14], eax
cmp dword [eax + 4], 0xffffffff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edx
je 0x101578b4
call fcn.100e0cc0
mov esi, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
jmp 0x10157983
lea eax, [ebp - 0x2c]
push eax
push 6
push 1
push ecx
call fcn.10133830
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x101578de
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
jmp 0x10157909
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.1012d8a0
cmp dword [eax], 0
je 0x10157911
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10101e50
mov eax, esi
test eax, eax
jne 0x10157983
jmp 0x10157942
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xffffffff
push 0
mov dword [ecx + 4], esi
mov byte [ecx + 8], 0x10
add ecx, 0xc
call fcn.100f7160
xor esi, esi
mov dword [ebp - 0x28], 0x10282038
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x20]
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [ebp - 0x50]
mov dword [eax + 0x20], ecx
mov byte [eax + 0x24], 0
movups xmmword [eax + 0x28], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 0x38], xmm0
mov dword [eax + 0x40], 0
mov ecx, dword [edi + 0xa8]
test esi, esi
je 0x101579cb
cmp dword [ecx + 4], 0xffffffff
je 0x10157998
call fcn.10150230
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push str.asio_listen
push 4
call fcn.100f5a30
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
cmp byte [edi + 0xc4], al
setne al
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x101579f3
call fcn.100e0d20
mov ecx, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
jmp 0x10157a20
push 4
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10157a56
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10157a56
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1014b070
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x4c], 0
je 0x10157b17
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test eax, eax
je 0x10157a7c
lock inc dword [eax + 4]
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x10157c23
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x1c]
push edx
call dword [eax + 8]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10157adc
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10157adc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10157adc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 4], eax
test ecx, ecx
je 0x10157b17
push esi
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1014b070
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0xa8]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 4]
movzx edx, word [esi]
cmp ecx, 0xffffffff
jne 0x10157b41
call fcn.100e0d20
mov dword [ebp - 0x28], eax
mov eax, 0x2719
mov dword [ebp - 0x2c], 0x2719
jmp 0x10157b9b
cmp edx, 2
mov dword [ebp + 8], 0x1c
mov eax, 0x10
cmovne eax, dword [ebp + 8]
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x10157b88
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10157bce
call fcn.100e0d20
mov dword [ebp - 0x28], eax
mov eax, 0x2719
mov dword [ebp - 0x2c], 0x2719
jmp 0x10157bf2
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
test eax, eax
je 0x10157b64
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1014b070
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0xc0]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10157bf6
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
test eax, eax
jne 0x10157b9f
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xd8], 2
mov dword [edx], 0
mov dword [edx + 4], 0x10282038
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.101e09d3
int3