Function at 0x100698d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022cfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xd8], 1
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
je 0x10069933
mov ecx, dword [esi + 0xc8]
push str.asio::listen_called_from_the_wrong_state
push 2
call fcn.10015b90
mov edx, 9
lea ecx, [ebp - 0x20]
call fcn.1003b850
jmp 0x10069bb5
mov ecx, dword [esi + 0xd0]
push str.asio::listen
push 0x400
call fcn.10015070
push 0x102a8ad8
push 0x1003c720
push 0x102a8ae0
mov dword [ebp - 0x18], 0
call fcn.101d1ed1
add esp, 0xc
test eax, eax
je 0x10069bdd
mov ecx, 2
mov dword [ebp - 0x14], 0x102a8ad8
cmp word [ebx], cx
lea edx, [ebp - 0x18]
mov eax, 0x17
cmove eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa8]
push edx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [eax]
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001c590
cmp dword [ebp - 0x18], 0
je 0x100699da
mov ecx, dword [esi + 0xa8]
cmp dword [ecx + 4], 0xffffffff
je 0x100699bc
call fcn.10067910
lea eax, [ebp - 0x18]
push eax
push str.asio_listen
push ecx
mov ecx, esi
call fcn.10068c30
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
jmp 0x10069bbc
mov eax, dword [esi + 0xa8]
xor ecx, ecx
cmp byte [esi + 0xc4], cl
setne cl
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10069a10
mov edx, 0x2719
lea ecx, [ebp - 0x20]
call fcn.100353b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jmp 0x10069a34
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 - 0x18]
setne dl
call fcn.10034890
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x100699ab
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10069aee
mov edx, dword [esi + 0xac]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test edx, edx
je 0x10069a6c
lock inc dword [edx + 4]
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x10069be2
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10069ac3
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10069ac3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10069ac3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
cmp dword [edi], 0
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
je 0x10069aeb
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.1006be30
jmp 0x10069bb5
mov ebx, dword [ebp - 0x2c]
mov eax, dword [esi + 0xa8]
movzx edx, word [ebx]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x10069b19
mov edx, 0x2719
lea ecx, [ebp - 0x20]
call fcn.100353b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jmp 0x10069b45
cmp edx, 2
mov dword [ebp - 0x2c], 0x1c
mov eax, 0x10
cmovne eax, dword [ebp - 0x2c]
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
lea ecx, [ebp - 0x18]
setne dl
call fcn.10034890
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10069b5a
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1006be30
jmp 0x10069bb5
mov eax, dword [esi + 0xa8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10069b82
mov edx, 0x2719
lea ecx, [ebp - 0x20]
call fcn.100353b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jmp 0x10069b9f
push dword [esi + 0xc0]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
lea ecx, [ebp - 0x18]
setne dl
call fcn.10034890
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x10069b49
lea ecx, [ebp - 0x30]
mov dword [esi + 0xd8], 2
call fcn.1003c770
mov ecx, dword [eax]
mov dword [edi], ecx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret 8
call fcn.101f7e31
call fcn.101d16d4
int3