Function at 0x1400c0cb0
Capabilities:
Connect socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xf0
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbp, qword [rcx]
xor r12b, r12b
mov qword [r8], 0xffffffffffffffff
mov r15, r8
mov eax, dword [rdx + 4]
mov rsi, rcx
mov rbx, qword [rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rcx + 0xbc]
cmp eax, 2
mov dword [rsp + 0x24], eax
mov eax, reloc.WS2_32.dll_recvfrom
je 0x1400c0d08
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x28], eax
mov ecx, 0x80
mov eax, dword [rdx + 0x10]
cmp eax, ecx
mov rdx, qword [rdx + 0x20]
cmova eax, ecx
lea rcx, [rsp + 0x30]
mov r8d, eax
mov dword [rsp + 0x2c], eax
call fcn.14028b800
mov rax, qword [rbx + 0x2c0]
test rax, rax
je 0x1400c0d4c
mov rcx, qword [rbx + 0x2c8]
lea r8, [rsp + 0x20]
xor edx, edx
call rax
jmp 0x1400c0d5f
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov r13d, 7
xor eax, eax
mov ebx, r13d
cmp rdi, 0xffffffffffffffff
cmovne ebx, eax
je 0x1400c0fbd
cmp word [rsp + 0x30], 2
jne 0x1400c0f81
lea r9d, [r13 + 0x27]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x34]
lea ecx, [rax + 2]
call fcn.1400cd3e0
test rax, rax
je 0x1400c0f81
movzx ecx, word [rsp + 0x32]
mov qword [rsp + 0x148], r14
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xb0]
mov rcx, rbp
lea rdx, str.__Trying__s..._n
call fcn.1400bf080
cmp dword [rsp + 0x20], 2
jne 0x1400c0de5
cmp dword [rsp + 0x24], 1
jne 0x1400c0de5
mov r14b, 1
jmp 0x1400c0de8
xor r14b, r14b
test r14b, r14b
je 0x1400c0e01
cmp byte [rbp + 0x58e], 0
je 0x1400c0e01
mov rdx, rdi
mov rcx, rsi
call fcn.1400c0470
mov rcx, rdi
call fcn.1400c02e0
test r14b, r14b
mov r14, qword [rsp + 0x148]
je 0x1400c0e2a
cmp byte [rbp + 0x7bc], 0
je 0x1400c0e2a
mov rdx, rdi
mov rcx, rbp
call fcn.1400c0fe0
mov rax, qword [rbp + 0x2b0]
test rax, rax
je 0x1400c0e4d
mov rcx, qword [rbp + 0x2b8]
xor r8d, r8d
mov rdx, rdi
call rax
cmp eax, 2
jne 0x1400c0e90
mov r12b, 1
cmp dword [rsp + 0x20], 2
jne 0x1400c0ea9
lea rcx, [rsp + 0x30]
call fcn.1401c0000
mov r8d, dword [rsp + 0x20]
mov r9d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.1400c07f0
mov ebx, eax
test eax, eax
je 0x1400c0ea9
mov rdx, rdi
mov rcx, rsi
call fcn.1400bfa30
cmp ebx, 1
cmove ebx, r13d
mov eax, ebx
jmp 0x1400c0fbd
test eax, eax
je 0x1400c0e4d
mov rdx, rdi
mov rcx, rsi
call fcn.1400bfa30
mov eax, Ordinal_46
jmp 0x1400c0fbd
mov edx, 1
mov rcx, rdi
call fcn.1400e3bf0
call fcn.1400b5150
cmp dword [rsi + 0x56c], 1
mov qword [rsi + 0x564], rax
jle 0x1400c0eda
mov rdx, qword [rsi + 0x570]
mov rcx, rbp
call fcn.1400b0530
test r12b, r12b
jne 0x1400c0f7c
cmp dword [rsi + 0xbc], 1
jne 0x1400c0f7c
cmp byte [rsi + 0x55e], r12b
jne 0x1400c0f1f
mov r8d, dword [rsp + 0x2c]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400c0f1f
test ebx, ebx
jne 0x1400c0f78
mov qword [r15], rdi
mov eax, ebx
jmp 0x1400c0fbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xb
je 0x1400c0f73
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400c0f73
mov edx, eax
mov rcx, rsi
call fcn.1400cca00
mov r9, rax
lea r8, [rsp + 0xb0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.1400bf080
mov rdx, rdi
mov dword [rbp + 0x4a34], ebx
mov rcx, rsi
call fcn.1400bfa30
mov ebx, r13d
mov eax, ebx
jmp 0x1400c0fbd
xor ebx, ebx
mov qword [r15], rdi
mov eax, ebx
jmp 0x1400c0fbd
mov qword [r15], rdi
jmp 0x1400c0fbb
mov byte [rsp + 0xb0], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1400cca00
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.1400befb0
mov rdx, rdi
mov rcx, rsi
call fcn.1400bfa30
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140286010
add rsp, 0xf0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret