Function at 0x10035220
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
push edi
mov dword [ebp - 0xd4], ecx
mov dword [ecx], 0xffffffff
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push eax
push ebx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc8], esi
call fcn.10034ee0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10035556
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.10035af0
add esp, 0xc
test eax, eax
jne 0x100352e9
call fcn.100660bc
mov esi, eax
call fcn.100660bc
push dword [esi]
mov edi, eax
push ebx
call fcn.10042550
push eax
push dword [edi]
mov eax, dword [ebp - 0xc8]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10033a50
push dword [ebp - 0xcc]
push ebx
call fcn.10034e80
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push esi
call fcn.100339d0
mov esi, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [ebp - 0xc4], 2
jne 0x10035338
cmp dword [ebp - 0xc0], 1
jne 0x10035338
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], 1
cmp dword [eax + 0x42c], 0
je 0x10035342
push esi
push ebx
call fcn.10034fb0
add esp, 8
jmp 0x10035342
mov dword [ebp - 0xcc], 0
push esi
call fcn.10034b70
mov eax, dword [ebp - 0xc8]
add esp, 4
cmp dword [ebp - 0xcc], 0
je 0x10035373
cmp dword [eax + 0x574], 0
je 0x10035373
push esi
push eax
call fcn.10035140
mov eax, dword [ebp - 0xc8]
add esp, 8
mov ecx, dword [eax + 0x1e8]
test ecx, ecx
je 0x1003539a
push 0
push esi
push dword [eax + 0x1ec]
call ecx
add esp, 0xc
cmp eax, 2
jne 0x100353ee
mov dword [ebp - 0xd0], 1
cmp dword [ebp - 0xc4], 2
jne 0x10035412
lea eax, [ebp - 0xb4]
push eax
call fcn.10057c80
push eax
push dword [ebp - 0xc4]
push esi
push ebx
call fcn.10035570
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10035412
push esi
push ebx
call fcn.10034e80
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1003539a
push esi
push ebx
call fcn.10034e80
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.10057cb0
lea eax, [ebp - 0xe8]
push eax
call fcn.10028970
movq xmm0, qword [eax]
movq qword [ebx + 0x450], xmm0
movq xmm0, qword [eax + 8]
add esp, 0xc
cmp dword [ebx + 0x460], 1
movq qword [ebx + 0x458], xmm0
jle 0x10035468
mov eax, dword [ebp - 0xc8]
push 3
push dword [ebx + 0x46c]
push dword [ebx + 0x468]
push eax
call fcn.100248d0
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x1003554e
cmp dword [ebx + 0x94], 1
jne 0x1003554e
cmp dword [ebx + 0x438], 0
jne 0x100354c7
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100354c7
test edi, edi
jne 0x1003553b
mov eax, dword [ebp - 0xd4]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd0], eax
cmp eax, 0xb
je 0x10035531
cmp eax, 0x2732
jle 0x100354e6
cmp eax, 0x2734
jle 0x10035531
push eax
push ebx
call fcn.10042550
mov edi, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.100339d0
mov eax, dword [ebp - 0xd0]
push esi
push ebx
mov dword [edi + 0x47e4], eax
call fcn.10034e80
add esp, 0x20
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd4]
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 fcn.10061e3f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd4]
mov dword [eax], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10061e3f
mov esp, ebp
pop ebp
ret