Function at 0x1400343b0
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
movzx r9d, word [rdx + 0x10]
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.14008b669
cmp dword [rsp + 0x38], 1
jne 0x1400343f5
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
jmp 0x140034487
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov r15b, 4
cmp r14, rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
je 0x14003443c
mov eax, dword [r14]
movups xmm0, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x6c], xmm0
movups xmm0, xmmword [r14 + 4]
movaps xmmword [rsp + 0x60], xmm0
cmp eax, 2
jne 0x1400344ab
movabs rax, 0x7ffffffffffffff
test qword [rsp + 0x28], rax
je 0x140034460
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
shl rsi, 8
movzx eax, r15b
cmp al, 4
lea rcx, str.could_not_resolve_to_any_addresses
cmove rdi, rcx
lea rcx, [rax + rsi]
mov eax, 0x1402
cmovne rax, rcx
mov rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdi
mov eax, 1
mov qword [rsi], rax
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rsp + 0x3c]
add r14, 0x20
mov r12b, 4
nop word [rax + rax]
mov dword [rsp + 0x38], eax
movups xmm0, xmmword [rsp + 0x6c]
movups xmmword [r13 + 0xc], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r13], xmm0
mov rax, qword [0x140443580]
cmp rax, 3
jne 0x1400345fa
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.14008c46e
cmp dword [rsp + 0x80], 1
jne 0x140034530
mov r15, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, r15
shrd rsi, rdi, 8
cmp r12b, 3
je 0x140034581
jmp 0x1400345c2
cmp dword [rsp + 0x38], 1
mov rdi, qword [rsp + 0x88]
mov r8d, 0x10
mov eax, 0x1c
cmove r8d, eax
mov rcx, rdi
mov rdx, r13
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140034604
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x18
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
xor r15d, r15d
xor edi, edi
cmp r12b, 3
jne 0x1400345c2
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
call qword [rax]
mov rax, qword [rbx + 8]
cmp qword [rax + 8], 0
je 0x1400345b1
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x1400345a3
mov r8, qword [r8 - 8]
mov rcx, qword [0x140443578]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
cmp r14, rbp
je 0x14003443c
mov eax, dword [r14]
movups xmm0, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x6c], xmm0
movups xmm0, xmmword [r14 + 4]
movaps xmmword [rsp + 0x60], xmm0
add r14, 0x20
mov rbx, rdi
mov r12d, r15d
cmp eax, 2
jne 0x1400344c0
jmp 0x14003443c
call fcn.140096f03
jmp 0x1400344e9
movabs rax, 0x7ffffffffffffff
test qword [rsp + 0x28], rax
je 0x140034628
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
cmp r12b, 3
mov rsi, qword [rsp + 0x30]
jne 0x140034674
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
call qword [rax]
mov rax, qword [rbx + 8]
cmp qword [rax + 8], 0
je 0x140034663
mov r8, qword [rbx]
cmp qword [rax + 0x10], 0x11
jb 0x140034655
mov r8, qword [r8 - 8]
mov rcx, qword [0x140443578]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov qword [rsi + 8], rdi
xor eax, eax
jmp 0x140034494