Function at 0x1001b4f2
Capabilities:
Set socket configuration

Disassembly:
add dword [eax], eax
mov dword [edx], 0x100bdb60
jmp 0x10035c72
add al, byte [eax]
add byte [eax], al
jmp 0x10035cd4
cmp byte [ebp - 0x1d5], 0
je 0x10035d7e
cmp byte [ebx + 0x706], 0
je 0x10035d7e
push 4
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 1
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x10035d7e
push dword [ebx + 0x6a4]
mov dword [ebp - 0x140], 1
call fcn.1006b168
push dword [ebx + 0x6a8]
imul eax, eax, 0x3e8
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x13c], eax
call 0x1006b185
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x1e4]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x140]
push eax
push 0x98000004
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp dword [ebx + 0x1b0], edi
je 0x10035dc2
push 1
push ebx
call fcn.1005999e
mov eax, dword [ebx + 0x1b0]
push 0
push esi
push dword [ebx + 0x1b4]
call eax
push 0
push ebx
mov dword [ebp - 0x1e4], eax
call fcn.100599bd
mov eax, dword [ebp - 0x1e4]
add esp, 0x1c
cmp eax, 2
jne 0x10035e24
mov byte [ebp - 0x1d6], 1
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
je 0x10035dd2
cmp eax, 0x17
jne 0x10035e4f
lea eax, [ebp - 0x1c4]
push eax
call fcn.10095b1e
push eax
push dword [ebp - 0x1d4]
push esi
push ebx
call fcn.1006a5ac
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10035e4f
mov eax, dword [ebp - 0x1e0]
push esi
push eax
test eax, eax
je 0x10035dc2
mov eax, dword [ebp - 0x1e0]
push esi
push eax
push ebx
call fcn.100693c6
add esp, 0xc
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a821a
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.10095c37
lea eax, [ebp - 0x144]
push eax
call fcn.1006e153
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x1e0]
cmp dword [eax + 0x284], 1
movups xmmword [eax + 0x288], xmm0
jle 0x10035eb6
push 3
push dword [eax + 0x29c]
push dword [eax + 0x298]
push ebx
call fcn.10059553
mov eax, dword [ebp - 0x1e0]
push 4
push dword [eax + 0x2a4]
push dword [eax + 0x2a0]
push ebx
call fcn.1005956d
mov eax, dword [ebp - 0x1e0]
add esp, 0x20
cmp byte [ebp - 0x1d6], 0
jne 0x10035f74
cmp dword [eax + 0x58], 4
je 0x10035f74
cmp byte [eax + 0x279], 0
jne 0x10035f0e
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10035f0e
test edi, edi
jne 0x10035f61
mov eax, dword [ebp - 0x1ec]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a82d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0xb
je 0x10035f57
sub ecx, 0x37a49
je 0x10035f57
sub ecx, 1
je 0x10035f57
mov dword [ebx + 0x948], eax
mov eax, dword [ebp - 0x1e0]
push esi
push eax
push ebx
call fcn.100694cc
add esp, 0xc
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a8322
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1ec]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a833f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1ec]