Function at 0x14007f2b0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x220
mov rax, qword [0x1401deb80]
xor rax, rsp
mov qword [rsp + 0x200], rax
movsxd rax, r9d
mov r10, r8
mov rbp, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r12b, r12b
lea r15, [rax*8]
mov qword [r15 + rdx + 0x1f8], 0xffffffffffffffff
mov rdx, r10
call fcn.14007e8a0
mov edi, eax
test eax, eax
jne 0x14007f5e1
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x218], rbx
lea rcx, [rsp + 0x50]
call fcn.14007db90
test al, al
jne 0x14007f387
call fcn.140161540
mov ebx, dword [rax]
call fcn.140161540
mov r8d, 0x100
lea rdx, [rsp + 0x100]
mov ecx, ebx
mov rdi, rax
call fcn.14006b6b0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14007d230
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, rsi
call fcn.14007dc30
xor eax, eax
jmp 0x14007f5d9
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s:_d...
mov rcx, rsi
call fcn.14007d310
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x14007f3b1
cmp eax, 0x17
jne 0x14007f3b8
cmp dword [rsp + 0x44], 1
je 0x14007f3c7
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.14007e7e0
jmp 0x14007f3fc
mov rbx, qword [rsp + 0x28]
cmp byte [rsi + 0xb23], r12b
je 0x14007f3e0
mov rdx, rbx
mov rcx, rsi
call fcn.14007f720
mov rcx, rbx
call fcn.14007e7e0
cmp byte [rsi + 0xb2b], r12b
je 0x14007f3fc
mov rdx, rbx
mov rcx, rsi
call fcn.14007f600
cmp qword [rsi + 0x288], 0
mov qword [rsp + 0x210], r14
je 0x14007f441
mov dl, 1
mov rcx, rsi
call fcn.14006f9d0
mov rcx, qword [rsi + 0x290]
xor r8d, r8d
mov rdx, rbx
call qword [rsi + 0x288]
xor edx, edx
mov rcx, rsi
mov r14d, eax
call fcn.14006f9d0
cmp r14d, 2
jne 0x14007f492
mov r12b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x14007f44f
cmp eax, 0x17
jne 0x14007f4af
lea rcx, [rsp + 0x50]
call fcn.1400a6f70
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.14007ec00
mov edi, eax
test eax, eax
je 0x14007f4af
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14007dc30
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x14007f5d1
test r14d, r14d
je 0x14007f441
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14007dc30
mov eax, Ordinal_46
jmp 0x14007f5d1
mov edx, 1
mov rcx, rbx
call fcn.1400a7000
lea rcx, [rsp + 0x28]
call fcn.1400835a0
cmp dword [rbp + 0x3b8], 1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x3c0], xmm0
jle 0x14007f503
mov rdx, qword [rbp + 0x3d0]
mov r8d, 3
mov rcx, rsi
call fcn.14006f510
mov rdx, qword [rbp + 0x3d8]
mov r8d, 4
mov rcx, rsi
call fcn.14006f510
test r12b, r12b
jne 0x14007f5c7
cmp dword [rbp + 0x8c], 4
je 0x14007f5c7
cmp byte [rbp + 0x3ae], r12b
jne 0x14007f551
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14007f551
test edi, edi
jne 0x14007f5c3
mov qword [r15 + rbp + 0x1f8], rbx
mov eax, edi
jmp 0x14007f5d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov edi, eax
sub edx, 0xb
je 0x14007f5b9
sub edx, 0x2728
je 0x14007f5b9
cmp edx, 1
je 0x14007f5b9
mov r8d, 0x100
lea rdx, [rsp + 0x100]
mov ecx, eax
call fcn.14006b6b0
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, rsi
call fcn.14007d310
mov r8, rbx
mov dword [rsi + 0xdd4], edi
mov rdx, rbp
mov rcx, rsi
call fcn.14007dc30
mov edi, 7
mov eax, edi
jmp 0x14007f5d1
xor edi, edi
mov qword [r15 + rbp + 0x1f8], rbx
mov eax, edi
jmp 0x14007f5d1
mov qword [r15 + rbp + 0x1f8], rbx
xor eax, eax
mov r14, qword [rsp + 0x210]
mov rbx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140149a30
add rsp, 0x220
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret