Function at 0x1002e621
Capabilities:
Connect socket

Disassembly:
sub esp, 0x164
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x170]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x178]
push edi
mov edi, dword [esi]
or dword [eax], 0xffffffff
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x180]
mov dword [esp + 0x20], edi
push esi
call fcn.1002dec1
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1002e672
xor eax, eax
jmp 0x1002e8dc
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.1002e5c8
add esp, 0xc
test eax, eax
jne 0x1002e6d5
call fcn.1005c3ef
mov esi, eax
call fcn.1005c3ef
mov edi, eax
push 0x80
lea eax, [esp + 0xf8]
push eax
push dword [esi]
call fcn.1004de15
mov esi, dword [esp + 0x24]
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.100293e3
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x194]
add esp, 0x1c
jmp 0x1002e7c5
lea eax, [esp + 0x24]
push eax
push str.__Trying__s..._n
push edi
call fcn.10029490
mov ebx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
inc eax
cmp dword [esp + 0x54], 2
jne 0x1002e714
cmp dword [esp + 0x58], eax
jne 0x1002e714
test byte [edi + 0xa90], 8
mov dword [esp + 0x10], eax
je 0x1002e719
push ebx
push esi
call fcn.1002e9a0
pop ecx
pop ecx
jmp 0x1002e719
and dword [esp + 0x10], 0
push ebx
call fcn.1002de37
cmp dword [esp + 0x14], 0
pop ecx
je 0x1002e73c
test dword [edi + 0xa90], 0x2000
je 0x1002e73c
push ebx
push edi
call fcn.1002e8e6
pop ecx
pop ecx
cmp dword [edi + 0x610], 0
je 0x1002e77c
push 1
push edi
call fcn.1002a2f1
push 0
push ebx
push dword [edi + 0x614]
call dword [edi + 0x610]
push 0
push edi
mov dword [esp + 0x30], eax
call fcn.1002a2f1
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 2
jne 0x1002e7b9
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x54], 2
jne 0x1002e7d7
lea eax, [esp + 0x64]
push eax
call fcn.10008640
push eax
push dword [esp + 0x5c]
push ebx
push esi
call fcn.1002e1ed
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1002e7d7
push ebx
push esi
call fcn.1002d762
pop ecx
pop ecx
push 7
pop eax
cmp ebp, 1
cmove ebp, eax
jmp 0x1002e8cc
test eax, eax
je 0x1002e77c
mov dword [esp + 0x14], 0x2a
push ebx
push esi
call fcn.1002d762
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
jmp 0x1002e8db
push 1
push ebx
call fcn.1004fc5e
lea eax, [esp + 0xec]
push eax
call fcn.100309e4
mov ecx, esi
mov esi, eax
lea edi, [ecx + 0x298]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp dword [ecx + 0x2a8], 1
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
jle 0x1002e828
push 3
push dword [ecx + 0x2b4]
push dword [ecx + 0x2b0]
push esi
call fcn.10029c7f
mov ecx, dword [esp + 0x188]
add esp, 0x10
cmp dword [esp + 0x1c], 0
jne 0x1002e8d0
cmp dword [ecx + 0x90], 1
jne 0x1002e8d0
test dword [ecx + 0x294], 0x8000000
jne 0x1002e861
push dword [esp + 0x60]
lea eax, [esp + 0x68]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1002e8bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x1002e8bd
cmp edi, 0x2732
jle 0x1002e87e
cmp edi, 0x2734
jle 0x1002e8bd
push 0x80
lea eax, [esp + 0xf8]
push eax
push edi
call fcn.1004de15
push eax
lea eax, [esp + 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.10029490
push ebx
push dword [esp + 0x198]
mov dword [esi + 0xcac], edi
call fcn.1002d762
add esp, 0x24
push 7
pop ebp
jmp 0x1002e8cc
xor ebp, ebp
test ebp, ebp
jne 0x1002e8cc
mov eax, dword [esp + 0x180]
mov dword [eax], ebx
mov eax, ebp
jmp 0x1002e8db
mov eax, dword [esp + 0x180]
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x164
ret