Function at 0x10133b30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
push esi
push edi
mov edi, dword [esp + 0x5c]
cmp ecx, 2
je 0x10133b6e
cmp ecx, 0x17
jne 0x10133cc5
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x10133b83
cmp eax, 5
je 0x10133b83
xor esi, esi
jmp 0x10133c03
lea edx, [ebx + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10133bf8
push eax
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x4660ddf3
push eax
push 0xc8000006
push dword [ebp]
mov dword [esp + 0x50], 0xe576e98e
mov dword [esp + 0x54], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10133beb
mov eax, ebx
mov dword [esp + 0x14], eax
jmp 0x10133bef
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 0xc]
xchg dword [ecx], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp esi, ebx
cmove esi, eax
test esi, esi
je 0x10133cc5
lea eax, [edi + 0x20]
mov dword [esp + 0x3c], 0
push eax
cmp ecx, 2
mov edx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, edx
movq qword [esp + 0x38], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp]
movups xmmword [esp + 0x34], xmm0
mov word [esp + 0x34], cx
call fcn.1010da30
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x10133c72
call fcn.100e0d20
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x10133c6a
cmp dword [edi + 0x20], 0x2726
je 0x10133c72
mov ecx, dword [ebx + 4]
jmp 0x10133d34
mov byte [edi + 0x38], 1
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x34]
push dword [ebp]
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x10133cba
cmp eax, 0x3e5
je 0x10133cba
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.10126a50
jmp 0x10133d3c
mov ecx, dword [ebx + 4]
push edi
call fcn.10126ad0
jmp 0x10133d3c
lea edx, [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x10], edx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
test ecx, ecx
jne 0x10133d12
mov eax, dword [ebx]
push ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov esi, dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.100f52f0
add esp, 8
lea eax, [esp + 0x18]
mov ecx, esi
push dword [esi + 0x18]
push 0x100f0a00
push eax
call fcn.10115bf0
mov ecx, dword [esp + 0x10]
mov ebx, eax
xchg dword [ecx], eax
jmp 0x10133d14
mov ebx, eax
test byte [ebp + 4], 3
jne 0x10133d80
mov eax, dword [ebp]
cmp eax, 0xffffffff
jne 0x10133d54
call fcn.100e0d20
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], eax
mov ecx, dword [ebx + 0x14]
push 0
push edi
call fcn.10127de0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101e3b75
add esp, 0x34
ret 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x10133e0f
mov dword [edi + 0x20], 0
or byte [ebp + 4], 2
lea esi, [edi + 0x20]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x28]
push dword [ebp]
call fcn.1010f3b0
add esp, 0x10
test eax, eax
je 0x10133d31
call fcn.100e0d20
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x10133db3
cmp dword [esi], 0x2734
je 0x10133dd3
call fcn.100e0d20
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x10133d31
cmp dword [esi], 0x2733
jne 0x10133d31
push 0
push 0
push edi
lea eax, [ebp + 0x10]
mov dword [esi], 0
push eax
mov dword [esi + 4], 0x10282038
mov ecx, ebx
push dword [ebp]
push 3
call fcn.10134050
mov ecx, dword [esp + 0x40]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101e3b75
add esp, 0x34
ret 0x1c
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
jmp 0x10133d31