Function at 0x1002bbf0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe0
mov eax, dword [0x100bb2a8]
xor eax, esp
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push edi
mov dword [esp + 0x10], ecx
mov ebp, dword [ebx]
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13], 0
push ecx
push eax
push ebx
call fcn.1002b8b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1002bc61
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.1005a19b
add esp, 0xe0
ret
movzx eax, word [esp + 0x38]
push esi
sub eax, 2
jne 0x1002be6e
push 0x2e
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x48]
push eax
push 2
call fcn.10039740
add esp, 0x10
test eax, eax
je 0x1002be6e
push dword [esp + 0x3e]
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [esp + 0xbc]
push eax
push str.__Trying__s..._n
push ebp
call fcn.1002a210
add esp, 0xc
cmp dword [esp + 0x2c], 2
jne 0x1002bcc3
cmp dword [esp + 0x30], 1
jne 0x1002bcc3
mov al, 1
jmp 0x1002bcc5
xor al, al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], al
test al, al
je 0x1002bce4
cmp byte [ebp + 0x3a6], 0
je 0x1002bce4
push esi
push ebx
call fcn.1002b980
add esp, 8
push esi
call fcn.1002b500
add esp, 4
cmp byte [esp + 0x12], 0
je 0x1002bd07
cmp byte [ebp + 0x4e0], 0
je 0x1002bd07
push esi
push ebp
call fcn.1002bb00
add esp, 8
mov eax, dword [ebp + 0x1d8]
test eax, eax
je 0x1002bd29
push 0
push esi
push dword [ebp + 0x1dc]
call eax
add esp, 0xc
cmp eax, 2
jne 0x1002bd6b
mov byte [esp + 0x13], 1
cmp dword [esp + 0x2c], 2
jne 0x1002bd83
lea eax, [esp + 0x3c]
push eax
call fcn.1004e9c0
push eax
push dword [esp + 0x34]
push esi
push ebx
call fcn.1002bed0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1002bd83
push esi
push ebx
call fcn.1002b850
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1002beb4
test eax, eax
je 0x1002bd29
push esi
push ebx
call fcn.1002b850
add esp, 8
mov eax, 0x2a
jmp 0x1002beb4
push 1
push esi
call fcn.1004e9f0
lea eax, [esp + 0x24]
push eax
call fcn.1001ed10
add esp, 0xc
cmp dword [ebx + 0x3c0], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x3b0], xmm0
jle 0x1002bdc2
push 3
push dword [ebx + 0x3cc]
push dword [ebx + 0x3c8]
push ebp
call fcn.1001a8d0
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x1002be66
cmp dword [ebx + 0x94], 1
jne 0x1002be66
cmp byte [ebx + 0x3aa], 0
jne 0x1002be09
push dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1002be09
test edi, edi
jne 0x1002be62
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, edi
jmp 0x1002beb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x1002be5a
cmp edi, 0x2732
jle 0x1002be26
cmp edi, 0x2734
jle 0x1002be5a
push edi
push ebx
call fcn.10038ab0
push eax
lea eax, [esp + 0xc8]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.1002a210
push esi
push ebx
mov dword [ebp + 0x4744], edi
call fcn.1002b850
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x1002beb4
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x1002beb4
mov eax, dword [esp + 0x14]
mov dword [eax], esi
jmp 0x1002beb2
mov byte [esp + 0xbc], 0
call fcn.10063d7e
mov dword [eax], 0x273f
call fcn.10063d7e
mov esi, eax
call fcn.10063d7e
push dword [esi]
mov edi, eax
push ebx
call fcn.10038ab0
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.1002a2f0
push dword [esp + 0x30]
push ebx
call fcn.1002b850
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xec]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005a19b
add esp, 0xe0
ret