Function at 0x10020d60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100795cd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10098140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1009e748], 1
je 0x10020dd1
mov ecx, dword [0x1009e738]
push str.asio::listen_called_from_the_wrong_state
push 2
call fcn.100184e0
mov edx, 9
lea ecx, [ebp - 0x20]
call fcn.100062b0
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
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x1009e740]
push str.asio::listen
push 0x400
call fcn.100164a0
mov ebx, dword [ebp + 8]
mov eax, 2
mov edx, dword [0x1009e718]
mov ecx, 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
cmp word [ebx], ax
cmovne eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [edx]
lea eax, [edx + 4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100233c0
test byte [ebp - 0x34], 1
je 0x10020e93
cmp dword [ebp - 0x34], 1
jne 0x10020e3f
cmp dword [ebp - 0x3c], 0
setne al
test al, al
je 0x10020e93
mov ecx, dword [0x1009e718]
cmp dword [ecx + 4], 0xffffffff
je 0x10020e50
call fcn.10019750
lea eax, [ebp - 0x3c]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1009e670
call fcn.1001d900
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.10005690
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
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
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x1009e718]
xor eax, eax
cmp byte [0x1009e734], al
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
setne al
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x10020f18
cmp dword [0x10098c38], 0x257edfd1
jne 0x10020ecd
cmp dword [0x10098c3c], 0xb2ab117a
je 0x10020ee5
cmp dword [0x10098c38], 0x257edfd0
jne 0x10020ee9
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x10020ee9
mov al, 1
jmp 0x10020efd
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x10098c30
movq xmm0, qword [ebp - 0x3c]
jmp 0x10020f4c
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10020f35
xorps xmm0, xmm0
jmp 0x10020f4c
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.10002300
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10020f68
cmp eax, 1
je 0x10020f68
and eax, 1
or eax, 0x100888a4
mov dword [ebp - 0x28], eax
test byte [ebp - 0x28], 1
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
je 0x10020fda
cmp eax, 1
jne 0x10020f86
cmp dword [ebp - 0x30], 0
setne al
test al, al
je 0x10020fda
mov ecx, dword [0x1009e718]
cmp dword [ecx + 4], 0xffffffff
je 0x10020f97
call fcn.10019750
lea eax, [ebp - 0x3c]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1009e670
call fcn.1001d900
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.10005690
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
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
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x1009e6bc]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x100210a9
mov edx, dword [0x1009e71c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edx, edx
je 0x10021013
lock inc dword [edx + 4]
mov edx, dword [0x1009e71c]
mov ecx, dword [0x1009e6bc]
mov eax, dword [0x1009e718]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x100212a3
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1002106c
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10021069
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10021069
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], eax
test ecx, ecx
je 0x100210a3
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.10028ba0
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
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp word [ebx], 2
mov eax, 0x1c
mov ecx, 0x10
cmovne ecx, eax
mov eax, dword [0x1009e718]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1002112a
cmp dword [0x10098c38], 0x257edfd1
jne 0x100210df
cmp dword [0x10098c3c], 0xb2ab117a
je 0x100210f7
cmp dword [0x10098c38], 0x257edfd0
jne 0x100210fb
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x100210fb
mov al, 1
jmp 0x1002110f
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x10098c30
movq xmm0, qword [ebp - 0x3c]
jmp 0x10021153
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1002113c
xorps xmm0, xmm0
jmp 0x10021153
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.10002300
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1002116f
cmp eax, 1
je 0x1002116f
and eax, 1
or eax, 0x1008892c
mov dword [ebp - 0x28], eax
test byte [ebp - 0x28], 1
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
je 0x100211b8
cmp eax, 1
jne 0x1002118d
cmp dword [ebp - 0x30], 0
setne al
test al, al
je 0x100211b8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10028b60
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
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1009e718]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10021223
cmp dword [0x10098c38], 0x257edfd1
jne 0x100211dd
cmp dword [0x10098c3c], 0xb2ab117a
je 0x100211f5
cmp dword [0x10098c38], 0x257edfd0
jne 0x100211f9
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x100211f9
mov al, 1
jmp 0x1002120d
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x3c], 0x2719
add eax, 2
mov dword [ebp - 0x38], 0x10098c30
jmp 0x10021255
push dword [0x1009e730]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x10021239
xorps xmm0, xmm0
jmp 0x10021250
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.10002300
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
test al, 1
je 0x10021278
cmp eax, 1
jne 0x1002126c
cmp dword [ebp - 0x3c], 0
setne al
test al, al
je 0x10021278
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
jmp 0x10021194
mov dword [0x1009e748], 2
mov dword [esi], 0
mov dword [esi + 4], 0x10098ca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1004d5ff
int3