Function at 0x1000afb0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x10011010]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x1000b022
sub eax, 0x15
jne 0x1000b0b9
mov eax, 0x17
mov dword [esp + 0xc], 0x1c
xorps xmm0, xmm0
mov word [esp + 0x14], ax
mov eax, dword [ebx + 0x18]
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
test eax, eax
je 0x1000b00a
push eax
jmp 0x1000b00d
push dword [esi + 0x18]
call fcn.100080d0
movups xmm0, xmmword [ebx + 4]
mov word [esp + 0x1a], ax
movups xmmword [esp + 0x20], xmm0
jmp 0x1000b05b
mov eax, 2
mov dword [esp + 0xc], 0x10
mov word [esp + 0x14], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x18]
movlpd qword [esp + 0x1c], xmm0
test eax, eax
je 0x1000b047
push eax
jmp 0x1000b04a
push dword [esi + 0x18]
call fcn.100080d0
mov word [esp + 0x1a], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x1000b07e
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 1
push ecx
call eax
add esp, 0x10
jmp 0x1000b089
push 0
push 1
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000b0b9
push esi
push dword [ebx]
push edi
call fcn.1000a950
mov ecx, dword [esi + 0x91b8]
add esp, 0xc
test eax, eax
jns 0x1000b0ea
test ecx, ecx
je 0x1000b0ce
push dword [esi + 0x91bc]
mov eax, dword [ecx + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000de3c
add esp, 0x28
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000de3c
add esp, 0x28
ret
mov dword [esp + 0x10], 1
push ebp
test ecx, ecx
jne 0x1000b10e
push 4
lea eax, [esp + 0x18]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1000b158
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x1000b12c
push dword [esi + 0x91b4]
push 1
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x1000b196
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.1000a640
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000b178
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x1000b178
cmp eax, 0x2733
je 0x1000b178
push edi
push esi
call fcn.1000a610
add esp, 8
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000de3c
add esp, 0x28
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x1000b1b5
push dword [esi + 0x91ac]
push 1
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x1000b1b5
push edi
push esi
call fcn.1000a610
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000de3c
add esp, 0x28
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x1000b1cf
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x20], edi
pop ebp
mov dword [ebx + 0x34], 0
inc dword [esi + 0x180]
mov eax, dword [esi + 0x180]
pop edi
mov dword [ebx + 0x40], eax
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.1000de3c
add esp, 0x28
ret