Function at 0x14002d020
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x110
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
mov r15, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rdi, rcx
xor r12b, r12b
call fcn.14002c700
mov esi, eax
test eax, eax
je 0x14002d070
xor eax, eax
jmp 0x14002d2b0
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.14002cfa0
test al, al
jne 0x14002d0cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140038a90
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.14002b5e0
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14002bf20
jmp 0x14002d2a6
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r14
call fcn.14002b6a0
cmp dword [rsp + 0x30], 2
jne 0x14002d100
cmp dword [rsp + 0x34], 1
jne 0x14002d100
mov eax, 1
jmp 0x14002d102
xor eax, eax
mov rbx, qword [rsp + 0x20]
test eax, eax
setne r14b
test r14b, r14b
je 0x14002d126
cmp byte [rbp + 0x46e], 0
je 0x14002d126
mov rdx, rbx
mov rcx, rdi
call fcn.14002c7d0
mov rcx, rbx
call fcn.14002c640
test r14b, r14b
mov r14, qword [rsp + 0x100]
je 0x14002d14f
cmp byte [rbp + 0x63c], 0
je 0x14002d14f
mov rdx, rbx
mov rcx, rbp
call fcn.14002d2d0
mov rax, qword [rbp + 0x268]
test rax, rax
je 0x14002d172
mov rcx, qword [rbp + 0x270]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x14002d1b9
mov r12b, 1
cmp dword [rsp + 0x30], 2
jne 0x14002d1d2
lea rcx, [rsp + 0x40]
call fcn.14002ee70
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rdi
call fcn.14002cb40
mov esi, eax
test eax, eax
je 0x14002d1d2
mov rdx, rbx
mov rcx, rdi
call fcn.14002bf20
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x14002d2a8
test eax, eax
je 0x14002d172
mov rdx, rbx
mov rcx, rdi
call fcn.14002bf20
mov eax, Ordinal_46
jmp 0x14002d2a8
mov edx, 1
mov rcx, rbx
call fcn.14004f230
call fcn.140022260
cmp dword [rdi + 0x3e0], 1
mov qword [rdi + 0x3d8], rax
jle 0x14002d202
mov edx, dword [rdi + 0x3e4]
mov rcx, rbp
call fcn.14001dea0
test r12b, r12b
jne 0x14002d2a3
cmp dword [rdi + 0xa4], 1
jne 0x14002d2a3
cmp byte [rdi + 0x3d4], r12b
jne 0x14002d244
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002d244
test esi, esi
jne 0x14002d29f
mov qword [r15], rbx
mov eax, esi
jmp 0x14002d2a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0xb
je 0x14002d29a
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14002d29a
mov edx, eax
mov rcx, rdi
call fcn.140038a90
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.14002b6a0
mov rdx, rbx
mov rcx, rdi
mov dword [rbp + 0x8844], esi
call fcn.14002bf20
mov esi, 7
mov eax, esi
jmp 0x14002d2a8
xor esi, esi
mov qword [r15], rbx
mov eax, esi
jmp 0x14002d2a8
mov qword [r15], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140058040
add rsp, 0x110
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret