Function at 0x1400c5ba0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov r14, qword [rcx]
movsxd rax, r8d
lea r9, [rbp + 0xa0]
lea r12, [rcx + rax*8]
lea r8, [rsp + 0x50]
mov rsi, rcx
mov qword [r12 + 0x268], 0xffffffffffffffff
xor r13b, r13b
call fcn.1400c5130
mov edi, eax
test eax, eax
je 0x1400c5bf3
xor eax, eax
jmp 0x1400c5d5c
movzx ecx, word [rsp + 0x60]
mov qword [rsp + 0x1a8], rbx
cmp ecx, 2
je 0x1400c5c15
cmp ecx, 0x17
jne 0x1400c5e8f
lea rdx, [rsp + 0x68]
jmp 0x1400c5c1a
lea rdx, [rsp + 0x64]
lea r8, [rsp + 0x20]
mov r9d, 0x2e
call fcn.1400e1f30
test rax, rax
je 0x1400c5e8f
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WSOCK32.DLL_ntohs]
lea r8, [rsp + 0x20]
lea rdx, str.__Trying__s:_ld..._n
mov rcx, r14
movzx r9d, ax
mov qword [rsp + 0x1b0], r15
call fcn.1400c01b0
mov eax, dword [rsp + 0x50]
cmp eax, 2
je 0x1400c5c6c
cmp eax, 0x17
jne 0x1400c5c7a
cmp dword [rsp + 0x54], 1
jne 0x1400c5c7a
mov eax, 1
jmp 0x1400c5c7c
xor eax, eax
mov rbx, qword [rbp + 0xa0]
test eax, eax
setne r15b
test r15b, r15b
je 0x1400c5ca3
cmp byte [r14 + 0xe9e], 0
je 0x1400c5ca3
mov rdx, rbx
mov rcx, rsi
call fcn.1400c6010
mov rcx, rbx
call fcn.1400c5070
test r15b, r15b
je 0x1400c5cc5
cmp byte [r14 + 0xea7], 0
je 0x1400c5cc5
mov rdx, rbx
mov rcx, r14
call fcn.1400c5ef0
cmp qword [r14 + 0x728], 0
je 0x1400c5d03
mov dl, 1
mov rcx, r14
call fcn.1400c16b0
mov rcx, qword [r14 + 0x730]
xor r8d, r8d
mov rdx, rbx
call qword [r14 + 0x728]
xor edx, edx
mov rcx, r14
mov r15d, eax
call fcn.1400c16b0
cmp r15d, 2
jne 0x1400c5d74
mov r13b, 1
mov eax, dword [rsp + 0x50]
cmp eax, 2
je 0x1400c5d11
cmp eax, 0x17
jne 0x1400c5d8b
lea rcx, [rsp + 0x60]
call fcn.1400e22c0
mov r8d, dword [rsp + 0x50]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.1400c5570
mov edi, eax
test eax, eax
je 0x1400c5d8b
mov rdx, rbx
mov rcx, rsi
call fcn.1400c4650
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
mov r15, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
test r15d, r15d
je 0x1400c5d03
mov rdx, rbx
mov rcx, rsi
call fcn.1400c4650
mov eax, 0x2a
jmp 0x1400c5d4c
mov edx, 1
mov rcx, rbx
call fcn.1400e1f00
lea rcx, [rbp - 0x20]
call fcn.1400d2fb0
cmp dword [rsi + 0x420], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x410], xmm0
jle 0x1400c5dc9
mov rdx, qword [rsi + 0x428]
mov r8d, 3
mov rcx, r14
call fcn.1400c0c90
test r13b, r13b
jne 0x1400c5e80
cmp dword [rsi + 0xbc], 4
je 0x1400c5e80
cmp byte [rsi + 0x405], r13b
jne 0x1400c5e15
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x1400c5e15
test edi, edi
jne 0x1400c5d4a
mov qword [r12 + 0x268], rbx
jmp 0x1400c5d4a
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1400c5e71
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400c5e71
lea rdx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.1400dd920
lea r8, [rsp + 0x20]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r14
call fcn.1400c01b0
mov rdx, rbx
mov rcx, rsi
mov dword [r14 + 0x1128], edi
call fcn.1400c4650
mov edi, 7
jmp 0x1400c5d4a
xor edi, edi
mov qword [r12 + 0x268], rbx
jmp 0x1400c5d4a
mov qword [r12 + 0x268], rbx
xor eax, eax
jmp 0x1400c5d4c
mov byte [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.msvcrt.dll__errno]
mov rbx, rax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rbx]
lea rdx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.1400dd920
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.1400c0050
mov rdx, qword [rbp + 0xa0]
mov rcx, rsi
call fcn.1400c4650
xor eax, eax
jmp 0x1400c5d54