Function at 0x1400a8aa0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov r14, qword [rcx]
mov qword [r8], 0xffffffffffffffff
mov eax, dword [rdx + 4]
mov rbx, qword [rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rcx + 0xa4]
xor r15d, r15d
mov dword [rsp + 0x24], eax
cmp eax, 2
mov r13, r8
mov rsi, rcx
lea eax, [r15 + 0x11]
je 0x1400a8af1
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov ecx, pe_nt_image_headers64
cmp eax, ecx
cmova eax, ecx
lea rcx, [rbp - 0x79]
mov r8d, eax
mov dword [rbp - 0x7d], eax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x278]
test rax, rax
je 0x1400a8b33
mov rcx, qword [rbx + 0x280]
lea r8, [rsp + 0x20]
xor edx, edx
call rax
jmp 0x1400a8b46
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WSOCK32.DLL_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a8df8
mov ecx, dword [rsi + 0xa0]
test ecx, ecx
je 0x1400a8b6b
mov eax, dword [rbp - 0x61]
cmp dword [rsp + 0x20], 0x17
cmove eax, ecx
mov dword [rbp - 0x61], eax
movzx ecx, word [rbp - 0x79]
xor ebx, ebx
cmp ecx, 2
je 0x1400a8b85
cmp ecx, 0x17
jne 0x1400a8dc3
lea rdx, [rbp - 0x71]
jmp 0x1400a8b89
lea rdx, [rbp - 0x75]
lea r8, [rbp + 7]
mov r9d, 0x2e
call fcn.1400bca10
test rax, rax
je 0x1400a8dc3
movzx ecx, word [rbp - 0x77]
call qword [sym.imp.WSOCK32.DLL_ntohs]
lea r8, [rbp + 7]
lea rdx, str.__Trying__s..._n
mov rcx, r14
mov qword [rsp + 0x110], r12
call fcn.1400a42e0
mov eax, dword [rsp + 0x20]
cmp eax, 2
je 0x1400a8bd4
cmp eax, 0x17
jne 0x1400a8be2
cmp dword [rsp + 0x24], 1
jne 0x1400a8be2
mov eax, 1
jmp 0x1400a8be4
xor eax, eax
test eax, eax
setne r12b
test r12b, r12b
je 0x1400a8c03
cmp byte [r14 + 0x45e], bl
je 0x1400a8c03
mov rdx, rdi
mov rcx, rsi
call fcn.1400a8f20
mov rcx, rdi
call fcn.1400a80b0
test r12b, r12b
je 0x1400a8c24
cmp byte [r14 + 0x61c], bl
je 0x1400a8c24
mov rdx, rdi
mov rcx, r14
call fcn.1400a8e00
mov rax, qword [r14 + 0x268]
test rax, rax
je 0x1400a8c62
mov rcx, qword [r14 + 0x270]
xor r8d, r8d
mov rdx, rdi
call rax
mov r15d, eax
cmp eax, 2
jne 0x1400a8c4c
mov r12b, 1
jmp 0x1400a8c65
test eax, eax
je 0x1400a8c62
mov rdx, rdi
mov rcx, rsi
call fcn.1400a78a0
mov eax, 0x2a
jmp 0x1400a8cad
xor r12b, r12b
mov eax, dword [rsp + 0x20]
cmp eax, 2
je 0x1400a8c73
cmp eax, 0x17
jne 0x1400a8cd1
lea rcx, [rbp - 0x79]
call fcn.1400bc990
mov r8d, dword [rsp + 0x20]
mov rdx, rdi
mov r9d, eax
mov rcx, rsi
call fcn.1400a8550
mov ebx, eax
test eax, eax
je 0x1400a8cd1
mov rdx, rdi
mov rcx, rsi
call fcn.1400a78a0
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
mov r12, qword [rsp + 0x110]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edx, 1
mov rcx, rdi
call fcn.1400bcd90
call fcn.1400aa440
cmp dword [rsi + 0x34c], 1
mov qword [rsi + 0x344], rax
jle 0x1400a8d01
mov edx, dword [rsi + 0x350]
mov rcx, r14
call fcn.1400a4c80
test r12b, r12b
jne 0x1400a8db8
cmp dword [rsi + 0xa4], 1
jne 0x1400a8db8
mov r8d, dword [rbp - 0x7d]
lea rdx, [rbp - 0x79]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_connect]
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1400a8d39
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov r15d, eax
cmp dword [rsp + 0x20], 0x17
sete cl
mov byte [rsi + 0x32f], cl
cmp r12d, 0xffffffff
jne 0x1400a8da7
cmp r15d, 0xb
je 0x1400a8d9c
lea eax, [r15 - 0x2733]
cmp eax, 1
jbe 0x1400a8d9c
mov edx, r15d
mov rcx, rsi
call fcn.1400bba40
lea r8, [rbp + 7]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, r14
call fcn.1400a42e0
mov rdx, rdi
mov rcx, rsi
mov dword [r14 + 0x8804], r15d
call fcn.1400a78a0
lea ebx, [r12 + 8]
jmp 0x1400a8cab
xor ebx, ebx
mov qword [r13], rdi
jmp 0x1400a8cab
test ebx, ebx
jne 0x1400a8cab
mov qword [r13], rdi
jmp 0x1400a8cab
mov qword [r13], rdi
xor eax, eax
jmp 0x1400a8cad
mov byte [rbp + 7], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.1400bba40
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, r14
call fcn.1400a41b0
mov rdx, rdi
mov rcx, rsi
call fcn.1400a78a0
xor eax, eax
jmp 0x1400a8cb5