Function at 0x10035c52
Capabilities:
Connect socket

Disassembly:
sub esp, 0xec
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0xe8], eax
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0xf4]
push esi
mov esi, dword [ebx]
or dword [ecx], 0xffffffff
push edi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
xor edi, edi
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
call fcn.10035470
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x10035cb4
xor eax, eax
jmp 0x10035eca
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.10035bf9
add esp, 0xc
test eax, eax
jne 0x10035d09
call fcn.100608c9
mov esi, eax
call fcn.100608c9
push dword [esi]
mov edi, eax
push ebx
call fcn.100409d4
mov esi, dword [esp + 0x20]
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.10034609
mov ebp, dword [esp + 0x28]
add esp, 0x18
xor edi, edi
jmp 0x10035dda
lea eax, [esp + 0xc8]
push eax
push str.__Trying__s..._n
push esi
call fcn.100346c5
mov ebp, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
inc eax
cmp dword [esp + 0x38], 2
jne 0x10035d4a
cmp dword [esp + 0x3c], eax
jne 0x10035d4a
mov dword [esp + 0x10], eax
cmp dword [esi + 0x42c], edi
je 0x10035d4e
push ebp
push ebx
call fcn.10035541
pop ecx
pop ecx
jmp 0x10035d4e
mov dword [esp + 0x10], edi
push ebp
call fcn.100353e6
pop ecx
cmp dword [esp + 0x10], edi
je 0x10035d6c
cmp dword [esi + 0x574], edi
je 0x10035d6c
push ebp
push esi
call fcn.10035ee2
pop ecx
pop ecx
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x10035d90
push edi
push ebp
push dword [esi + 0x1ec]
call eax
add esp, 0xc
cmp eax, 2
jne 0x10035dd3
mov dword [esp + 0x20], 1
cmp dword [esp + 0x38], 2
jne 0x10035dea
lea eax, [esp + 0x48]
push eax
call fcn.1002ca04
push eax
push dword [esp + 0x40]
push ebp
push ebx
call fcn.10035821
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
je 0x10035dea
push ebp
push ebx
call fcn.10034d39
pop ecx
pop ecx
push 7
pop eax
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x10035ec9
test eax, eax
je 0x10035d90
push 0x2a
pop edi
push ebp
push ebx
call fcn.10034d39
pop ecx
pop ecx
mov eax, edi
jmp 0x10035ec9
push 1
push ebp
call fcn.10052142
lea eax, [esp + 0x30]
push eax
call fcn.1002b9bb
lea edi, [ebx + 0x450]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp dword [ebx + 0x460], 1
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
jle 0x10035e2f
push 3
push dword [ebx + 0x46c]
push dword [ebx + 0x468]
push esi
call fcn.10027ddc
add esp, 0x10
cmp dword [esp + 0x20], 0
jne 0x10035ec1
cmp dword [ebx + 0x94], 1
jne 0x10035ec1
xor edi, edi
cmp dword [ebx + 0x438], edi
jne 0x10035e62
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10035eb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
cmp eax, 0xb
je 0x10035eb3
cmp eax, 0x2732
jle 0x10035e7f
cmp eax, 0x2734
jle 0x10035eb3
push eax
push ebx
call fcn.100409d4
push eax
lea eax, [esp + 0xd4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.100346c5
mov eax, dword [esp + 0x2c]
push ebp
push ebx
mov dword [esi + 0x47e4], eax
call fcn.10034d39
add esp, 0x20
push 7
pop eax
jmp 0x10035ec9
mov eax, edi
jmp 0x10035ebb
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10035ec9
jmp 0x10035ec3
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebp
pop ebp
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0xec
ret