Function at 0x1002c640
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10088d90]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
push ebp
push esi
mov esi, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push ebx
mov dword [esp + 0x20], 0
call fcn.1002c4b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1002c6a4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
movzx eax, word [esp + 0x24]
sub eax, 2
push edi
jne 0x1002c7cf
push 0x2e
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x34]
push ecx
push 2
call fcn.10039160
add esp, 0x10
test eax, eax
je 0x1002c7cf
mov edx, dword [esp + 0x2a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0xa8]
push ecx
push str.__Trying__s..._n
push esi
call fcn.100295c0
mov edi, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x18], 2
jne 0x1002c806
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x1002c806
cmp dword [esi + 0x414], 0
mov dword [esp + 0xc], eax
je 0x1002c72a
push edi
push ebx
call fcn.1002c260
add esp, 8
push edi
call fcn.1002c2c0
add esp, 4
cmp dword [esp + 0xc], 0
je 0x1002c748
cmp dword [esi + 0x558], 0
je 0x1002c748
call fcn.1002b9d0
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x1002c772
mov edx, dword [esi + 0x1d4]
push 0
push edi
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x1002c813
mov dword [esp + 0x14], 1
cmp dword [esp + 0x18], 2
jne 0x1002c842
lea eax, [esp + 0x28]
push eax
call fcn.10020fe0
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call fcn.1002bb80
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1002c842
push edi
push ebx
call fcn.1002c450
add esp, 8
cmp ebp, 1
jne 0x1002c94c
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
mov byte [esp + 0xa8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push ebx
call fcn.1001eb70
push eax
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.10029650
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.1002c450
add esp, 0x20
jmp 0x1002c96c
mov dword [esp + 0xc], 0
jmp 0x1002c72a
test eax, eax
je 0x1002c772
push edi
push ebx
call fcn.1002c450
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
push 1
push edi
call fcn.1004af90
add esp, 8
call fcn.10028fe0
cmp dword [ebx + 0x448], 1
mov dword [ebx + 0x440], eax
mov dword [ebx + 0x444], edx
jle 0x1002c87e
mov edx, dword [ebx + 0x454]
mov eax, dword [ebx + 0x450]
push edx
push eax
push esi
call fcn.1001c750
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x1002c966
cmp dword [ebx + 0x94], 1
jne 0x1002c966
cmp dword [ebx + 0x428], 0
jne 0x1002c8b9
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1002c942
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x1002c920
cmp ebp, 0x2732
jle 0x1002c8d6
cmp ebp, 0x2734
jle 0x1002c920
push ebp
push ebx
call fcn.1001eb70
push eax
lea eax, [esp + 0xb4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.100295c0
push edi
push ebx
mov dword [esi + 0x475c], ebp
call fcn.1002c450
add esp, 0x20
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
test ebp, ebp
jne 0x1002c94c
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.1005435a
add esp, 0xd0
ret
mov edx, dword [esp + 0x10]
mov dword [edx], edi
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1005435a
add esp, 0xd0
ret