Function at 0x14001a1d0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x1a0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x28]
movsxd rax, r8d
mov rsi, rcx
lea r8, [rsp + 0x40]
xor r12b, r12b
lea r15, [rcx + rax*8]
mov qword [r15 + 0x268], 0xffffffffffffffff
call fcn.1400196c0
mov edi, eax
test eax, eax
je 0x14001a228
xor eax, eax
jmp 0x14001a4c8
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x198], rbx
lea rcx, [rsp + 0x50]
call fcn.140018d00
test al, al
jne 0x14001a29c
call fcn.14005b688
mov ebx, dword [rax]
call fcn.14005b688
mov r8d, Ordinal_133
lea rdx, [rsp + 0x100]
mov ecx, ebx
mov rdi, rax
call fcn.140041490
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1400181d0
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140018da0
xor eax, eax
jmp 0x14001a4c0
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s:_ld..._n
mov qword [rsp + 0x190], r14
mov rcx, rbp
call fcn.1400182e0
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
cmp eax, 2
je 0x14001a2d3
cmp eax, 0x17
jne 0x14001a2f3
cmp dword [rsp + 0x44], 1
jne 0x14001a2f3
mov r14b, 1
cmp byte [rbp + 0xeb3], r12b
je 0x14001a2f6
mov rdx, rbx
mov rcx, rsi
call fcn.14001a610
jmp 0x14001a2f6
xor r14b, r14b
mov rcx, rbx
call fcn.140019600
test r14b, r14b
je 0x14001a317
cmp byte [rbp + 0xebc], r12b
je 0x14001a317
mov rdx, rbx
mov rcx, rbp
call fcn.14001a4f0
cmp qword [rbp + 0x728], 0
je 0x14001a354
mov dl, 1
mov rcx, rbp
call fcn.14000a2a0
mov rcx, qword [rbp + 0x730]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x728]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.14000a2a0
cmp r14d, 2
jne 0x14001a3a2
mov r12b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x14001a362
cmp eax, 0x17
jne 0x14001a3bc
lea rcx, [rsp + 0x50]
call fcn.140041f50
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.140019b50
mov edi, eax
test eax, eax
je 0x14001a3bc
mov rdx, rbx
mov rcx, rsi
call fcn.140018da0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x14001a4b8
test r14d, r14d
je 0x14001a354
mov rdx, rbx
mov rcx, rsi
call fcn.140018da0
mov eax, Ordinal_46
jmp 0x14001a4b8
mov edx, 1
mov rcx, rbx
call fcn.1400245f0
lea rcx, [rsp + 0x28]
call fcn.14001bfa0
cmp dword [rsi + 0x420], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x410], xmm0
jle 0x14001a3fb
mov rdx, qword [rsi + 0x428]
mov r8d, 3
mov rcx, rbp
call fcn.140009910
test r12b, r12b
jne 0x14001a4af
cmp dword [rsi + 0xbc], 4
je 0x14001a4af
cmp byte [rsi + 0x408], r12b
jne 0x14001a441
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001a441
test edi, edi
jne 0x14001a4ab
mov qword [r15 + 0x268], rbx
mov eax, edi
jmp 0x14001a4b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x14001a4a2
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14001a4a2
mov r8d, Ordinal_133
lea rdx, [rsp + 0x100]
mov ecx, eax
call fcn.140041490
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.1400182e0
mov rdx, rbx
mov dword [rbp + 0x1140], edi
mov rcx, rsi
call fcn.140018da0
mov edi, 7
mov eax, edi
jmp 0x14001a4b8
xor edi, edi
mov qword [r15 + 0x268], rbx
mov eax, edi
jmp 0x14001a4b8
mov qword [r15 + 0x268], rbx
xor eax, eax
mov r14, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1a0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret