Function at 0x10021090
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007972d
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 [0x1009e6d8], 1
je 0x10021101
mov ecx, dword [0x1009e6c8]
push str.asio::listen_called_from_the_wrong_state
push 2
call fcn.10018810
mov edx, 9
lea ecx, [ebp - 0x20]
call fcn.10006480
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 [0x1009e6d0]
push str.asio::listen
push 0x400
call fcn.100167c0
mov ebx, dword [ebp + 8]
mov eax, 2
mov edx, dword [0x1009e6a8]
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.100236f0
test byte [ebp - 0x34], 1
je 0x100211c3
cmp dword [ebp - 0x34], 1
jne 0x1002116f
cmp dword [ebp - 0x3c], 0
setne al
test al, al
je 0x100211c3
mov ecx, dword [0x1009e6a8]
cmp dword [ecx + 4], 0xffffffff
je 0x10021180
call fcn.10019a80
lea eax, [ebp - 0x3c]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1009e600
call fcn.1001dc30
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.10005860
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 [0x1009e6a8]
xor eax, eax
cmp byte [0x1009e6c4], 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 0x10021248
cmp dword [0x10098c38], 0x257edfd1
jne 0x100211fd
cmp dword [0x10098c3c], 0xb2ab117a
je 0x10021215
cmp dword [0x10098c38], 0x257edfd0
jne 0x10021219
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x10021219
mov al, 1
jmp 0x1002122d
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 0x1002127c
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 0x10021265
xorps xmm0, xmm0
jmp 0x1002127c
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.100023e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10021298
cmp eax, 1
je 0x10021298
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 0x1002130a
cmp eax, 1
jne 0x100212b6
cmp dword [ebp - 0x30], 0
setne al
test al, al
je 0x1002130a
mov ecx, dword [0x1009e6a8]
cmp dword [ecx + 4], 0xffffffff
je 0x100212c7
call fcn.10019a80
lea eax, [ebp - 0x3c]
push eax
push str.asio_listen
push ecx
mov ecx, 0x1009e600
call fcn.1001dc30
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.10005860
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 [0x1009e64c]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x100213d9
mov edx, dword [0x1009e6ac]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edx, edx
je 0x10021343
lock inc dword [edx + 4]
mov edx, dword [0x1009e6ac]
mov ecx, dword [0x1009e64c]
mov eax, dword [0x1009e6a8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x100215d3
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 0x1002139c
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10021399
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10021399
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 0x100213d3
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.10028ed0
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 [0x1009e6a8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1002145a
cmp dword [0x10098c38], 0x257edfd1
jne 0x1002140f
cmp dword [0x10098c3c], 0xb2ab117a
je 0x10021427
cmp dword [0x10098c38], 0x257edfd0
jne 0x1002142b
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x1002142b
mov al, 1
jmp 0x1002143f
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 0x10021483
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1002146c
xorps xmm0, xmm0
jmp 0x10021483
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.100023e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1002149f
cmp eax, 1
je 0x1002149f
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 0x100214e8
cmp eax, 1
jne 0x100214bd
cmp dword [ebp - 0x30], 0
setne al
test al, al
je 0x100214e8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10028e90
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 [0x1009e6a8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10021553
cmp dword [0x10098c38], 0x257edfd1
jne 0x1002150d
cmp dword [0x10098c3c], 0xb2ab117a
je 0x10021525
cmp dword [0x10098c38], 0x257edfd0
jne 0x10021529
cmp dword [0x10098c3c], 0xb2ab117a
jne 0x10021529
mov al, 1
jmp 0x1002153d
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 0x10021585
push dword [0x1009e6c0]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x10021569
xorps xmm0, xmm0
jmp 0x10021580
call edi
push 0x10098c30
push eax
lea ecx, [ebp - 0x30]
call fcn.100023e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
test al, 1
je 0x100215a8
cmp eax, 1
jne 0x1002159c
cmp dword [ebp - 0x3c], 0
setne al
test al, al
je 0x100215a8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
jmp 0x100214c4
mov dword [0x1009e6d8], 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.1004d75f
int3