Function at 0x10035ab6
Capabilities:
Connect socket
Set socket configuration

Disassembly:
or edx, dword [eax]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, 0x56
mov edx, dword [ebp + 0x10]
lea eax, [ecx + eax*4]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0xffffffff
push esi
mov dword [ebp - 0x1ec], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x1d4], eax
xor eax, eax
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1e0], ecx
mov byte [ebp - 0x1d6], 0
cmp dword [edi + 0x58], 3
setne al
inc eax
mov dword [ebp - 0x1d0], eax
mov eax, 0x11
cmp dword [edi + 0x58], 3
jne 0x10035a9b
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1cc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c8], eax
cmp eax, 0x80
jbe 0x10035ac0
mov dword [ebp - 0x1c8], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [ebp - 0x1c4]
push eax
call 0x100a96f0
add esp, 0xc
cmp dword [ebx + 0x1b8], 0
je 0x10035b10
push 1
push ebx
call fcn.100596f4
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [ebx + 0x1b8]
push 0
push dword [ebx + 0x1bc]
call eax
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x1dc], esi
call fcn.1005971b
add esp, 0x1c
jmp 0x10035b30
push dword [ebp - 0x1cc]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1d4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x1dc], eax
cmp esi, 0xffffffff
jne 0x10035b4b
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a7f16
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x58], 5
jne 0x10035b5c
push 1
push esi
call fcn.10095939
add esp, 8
lea eax, [ebp - 0x1e4]
xor edi, edi
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.1006905b
add esp, 0x10
test al, al
jne 0x10035bd9
call 0x100ad580
mov esi, dword [eax]
call 0x100ad587
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push esi
call fcn.100956b2
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10068720
push dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1e0]
push eax
push ebx
call fcn.10069153
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x100a7fa4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
je 0x10035be9
cmp eax, 0x17
jne 0x10035c2e
cmp dword [ebp - 0x1d0], 1
jne 0x10035c2e
cmp byte [ebx + 0x6fe], 0
mov byte [ebp - 0x1d5], 1
je 0x10035c35
push 4
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x1e8], 1
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, byte [ebp - 0x1d5]
mov byte [ebp - 0x1d5], al
jmp 0x10035c35
mov byte [ebp - 0x1d5], 0
mov eax, dword [0x100c1aec]
mov dword [ebp - 0x1e8], 0x4020
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1e4], 4
test eax, eax
jne 0x10035c84
push 3
push 2
push eax
push eax
push 6
call fcn.10095dd5
add esp, 0x14
test al, al
je 0x10035c78
mov dword [0x100c1aec], 2
mov dword [0x100c1aec], 1
jmp 0x10035c89
cmp eax, 2
je 0x10035cd4
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1dc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10035cba
mov eax, dword [ebp - 0x1dc]
cmp eax, dword [ebp - 0x1e8]
jg 0x10035cd4
push 4
lea eax, [ebp - 0x1e8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]