Function at 0x14002f690
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x14008e168]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12, qword [rcx]
movsxd r14, r8d
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rsi, rcx
xor r15d, r15d
mov qword [rcx + r14*8 + 0x4d0], 0xffffffffffffffff
call fcn.14002f4a0
mov edi, eax
test eax, eax
je 0x14002f6ee
xor eax, eax
jmp 0x14002f858
movzx ecx, word [rsp + 0x40]
mov qword [rsp + 0x258], rbx
cmp ecx, 2
je 0x14002f710
cmp ecx, 0x17
jne 0x14002f9a6
lea rdx, [rsp + 0x48]
jmp 0x14002f715
lea rdx, [rsp + 0x44]
lea r8, [rbp - 0x40]
mov r9d, 0x2e
call fcn.140048670
test rax, rax
je 0x14002f9a6
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rbp - 0x40]
lea rdx, str.__Trying__s:_ld..._n
mov rcx, r12
movzx r9d, ax
mov qword [rsp + 0x200], r13
call fcn.140028130
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
cmp eax, 2
je 0x14002f76a
cmp eax, 0x17
jne 0x14002f78e
cmp dword [rsp + 0x34], 1
jne 0x14002f78e
mov r13d, 1
cmp dword [r12 + 0xfb8], r15d
je 0x14002f791
mov rdx, rbx
mov rcx, rsi
call fcn.14002f1d0
jmp 0x14002f791
xor r13d, r13d
mov rcx, rbx
call fcn.14002f260
test r13d, r13d
je 0x14002f7b3
cmp dword [r12 + 0xfdc], r15d
je 0x14002f7b3
mov rdx, rbx
mov rcx, r12
call fcn.14002e4d0
cmp qword [r12 + 0x740], r15
je 0x14002f7fb
mov edx, 1
mov rcx, r12
call fcn.140025e10
mov rcx, qword [r12 + 0x748]
xor r8d, r8d
mov rdx, rbx
call qword [r12 + 0x740]
xor edx, edx
mov rcx, r12
mov r13d, eax
call fcn.140025e10
cmp r13d, 2
jne 0x14002f878
lea r15d, [r13 - 1]
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14002f80d
cmp eax, 0x17
jne 0x14002f893
lea rcx, [rsp + 0x40]
call fcn.140048230
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.14002e710
mov edi, eax
test eax, eax
je 0x14002f893
mov rdx, rbx
mov rcx, rsi
call fcn.14002f400
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
mov r13, qword [rsp + 0x200]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400512b0
add rsp, 0x208
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
test r13d, r13d
je 0x14002f7fb
mov rdx, rbx
mov rcx, rsi
call fcn.14002f400
mov eax, 0x2a
jmp 0x14002f848
mov edx, 1
mov rcx, rbx
call fcn.140045200
lea rcx, [rsp + 0x20]
call fcn.140033250
cmp dword [rsi + 0x6e8], 1
mov rcx, qword [rax]
mov qword [rsi + 0x6d8], rcx
mov rax, qword [rax + 8]
mov qword [rsi + 0x6e0], rax
jle 0x14002f8dd
mov rdx, qword [rsi + 0x6f0]
mov r8d, 3
mov rcx, r12
call fcn.140025b30
test r15d, r15d
jne 0x14002f997
cmp dword [rsi + 0x32c], 4
je 0x14002f997
cmp dword [rsi + 0x6c8], r15d
jne 0x14002f929
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002f929
test edi, edi
jne 0x14002f846
mov qword [rsi + r14*8 + 0x4d0], rbx
jmp 0x14002f846
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x14002f988
cmp eax, 0x2732
jle 0x14002f944
cmp eax, 0x2734
jle 0x14002f988
lea rdx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.14003f6a0
lea r8, [rbp - 0x40]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r12
call fcn.140028130
mov rdx, rbx
mov rcx, rsi
mov dword [r12 + 0x12a0], edi
call fcn.14002f400
mov edi, 7
jmp 0x14002f846
xor edi, edi
mov qword [rsi + r14*8 + 0x4d0], rbx
jmp 0x14002f846
mov qword [rsi + r14*8 + 0x4d0], rbx
xor eax, eax
jmp 0x14002f848
mov byte [rbp - 0x40], r15b
call fcn.140050a04
mov dword [rax], 0x273f
call fcn.140050a04
mov rbx, rax
call fcn.140050a04
mov ecx, dword [rbx]
lea rdx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.14003f6a0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r12
call fcn.140028290
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.14002f400
xor eax, eax
jmp 0x14002f850