Function at 0x10021ea4
Capabilities:
Set socket configuration

Disassembly:
jmp 0x101e8470
sub esp, 0x2c
mov eax, dword [0x107b3de0]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
cmp edx, 2
je 0x101e84a6
cmp edx, 0x17
jne 0x101e8612
mov eax, dword [esp + 0x48]
cmp eax, 1
je 0x101e84b8
cmp eax, 5
jne 0x101e8612
lea esi, [edi + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x101e852e
push eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0x4660ddf3
push eax
push 0xc8000006
push dword [ebp]
mov dword [esp + 0x48], 0xe576e98e
mov dword [esp + 0x4c], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esp + 0x10]
test eax, eax
lea eax, [edi + 0xc]
cmovne ecx, edi
mov dword [esp + 0x10], ecx
xchg dword [eax], ecx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
xor eax, eax
cmp esi, edi
cmove esi, eax
test esi, esi
je 0x101e8612
mov dword [esp + 0x34], eax
cmp edx, 2
lea eax, [ebx + 0x20]
mov ecx, 0x10
push eax
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, ecx
movq qword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp]
movups xmmword [esp + 0x2c], xmm0
mov word [esp + 0x2c], dx
call fcn.1000ab4b
add esp, 0x10
cmp dword [ebx + 0x20], 0
je 0x101e85a0
call fcn.1000f3c6
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x101e8598
cmp dword [ebx + 0x20], 0x2726
je 0x101e85a0
mov ecx, dword [edi + 4]
jmp 0x101e865f
mov byte [ebx + 0x34], 1
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
push ebx
push 0
push 0
push 0
push dword [esp + 0x60]
push dword [esp + 0x2c]
push dword [ebp]
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x101e85f4
cmp eax, 0x3e5
je 0x101e85f4
mov ecx, dword [edi + 4]
push esi
push eax
push ebx
call fcn.1000de59
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010069
add esp, 0x2c
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.1001aab4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010069
add esp, 0x2c
ret 0x18
lea esi, [edi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x101e8637
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
call fcn.1001da39
mov dword [esp + 0x10], eax
xchg dword [esi], eax
test byte [ebp + 4], 3
jne 0x101e86c9
mov esi, dword [ebp]
cmp esi, 0xffffffff
jne 0x101e867c
call fcn.1000f3c6
mov dword [ebx + 0x20], 0x2719
mov dword [ebx + 0x24], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
push 0
push ebx
call fcn.10012616
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010069
add esp, 0x2c
ret 0x18
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.1000f3c6
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], esi
test edi, edi
js 0x101e8658
call fcn.10014727
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], eax
or byte [ebp + 4], 2
lea esi, [ebx + 0x20]
push esi
push dword [esp + 0x54]
push dword [esp + 0x20]
push dword [ebp]
call fcn.100082c4
add esp, 0x10
test eax, eax
je 0x101e8658
call fcn.1000f3c6
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x101e8700
cmp dword [esi], 0x2734
je 0x101e8720
call fcn.1000f3c6
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x101e8658
cmp dword [esi], 0x2733
jne 0x101e8658
call fcn.10014727
mov ecx, dword [esp + 0x10]
push 0
push 0
mov dword [esi + 4], eax
lea eax, [ebp + 0x10]
push ebx
push eax
mov dword [esi], 0
push dword [ebp]
push 3
call fcn.10014fc9
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10010069
add esp, 0x2c
ret 0x18