Function at 0x1400778a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x1400b59e8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rcx
xor r13d, r13d
mov eax, r13d
xchg byte [rcx + 8], al
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp byte [rdx + rdi], r13b
jne 0x1400778f0
cmp rdi, 0x100
jb 0x140077917
lea rdx, str.CONNECT_error:_Pool_address_overflow.
mov rcx, qword [rcx + 0x10]
call fcn.1400744d0
jmp 0x140077ba8
mov r8, rdi
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x50], r13b
lea rdx, [0x1400988b0]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x14007795c
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rax + rbx + 2], r13b
jne 0x140077940
lea r8, [rbx + 1]
lea rdx, [rax + 2]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov edx, 0x3a
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x140077984
lea rdx, str.CONNECT_error:_Pool_port_number_not_specified__please_use_format__hostname_:_port_.
mov rcx, qword [rsi + 0x10]
call fcn.1400744d0
jmp 0x140077ba8
mov byte [rax], r13b
lea rdx, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov dword [rsp + 0x74], r13d
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 6
mov qword [rsi + 0x20], r13
lea r9, [rsi + 0x20]
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400779ef
mov r8d, eax
lea rdx, str.CONNECT_error:_GetAddrInfo:
mov rcx, qword [rsi + 0x10]
call fcn.1400745e0
jmp 0x140077ba8
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x40], r13
movdqu xmmword [rsp + 0x48], xmm0
test rax, rax
je 0x140077b6f
nop word [rax + rax]
cmp dword [rax + 4], 2
jne 0x140077a3a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140074c00
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0x17
jne 0x140077a54
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140074c00
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140077a20
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
cmp r15, rbx
jne 0x140077a9e
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
cmp r14, rbx
je 0x140077b6f
sub rbx, r14
sar rbx, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div rbx
mov rax, qword [r14 + rdx*8]
jmp 0x140077af0
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
cmp r12, r14
jne 0x140077ac7
sub rbx, r15
sar rbx, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div rbx
mov rax, qword [r15 + rdx*8]
jmp 0x140077af0
call fcn.140040a50
mov rcx, rax
call fcn.14004a3d0
test al, al
jne 0x140077aad
sub r14, r12
sar r14, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div r14
mov rax, qword [r12 + rdx*8]
mov qword [rsi + 0x18], rax
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x140077b2e
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rsi + 0x20], r13
lea rdx, str.CONNECT_error:_Socket_creation_failed
mov rcx, qword [rsi + 0x10]
call fcn.140074540
jmp 0x140077b8d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
lea rcx, [rsp + 0x40]
call fcn.14006a9d0
nop
lea rcx, [rsp + 0x58]
call fcn.14006a9d0
mov al, 1
jmp 0x140077ba8
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rsi + 0x20], r13
lea rdx, str.CONNECT_error:_I_found_some_DNS_records_but_no_IPv4_or_IPv6_addresses.
mov rcx, qword [rsi + 0x10]
call fcn.1400744d0
movzx ebx, al
lea rcx, [rsp + 0x40]
call fcn.14006a9d0
nop
lea rcx, [rsp + 0x58]
call fcn.14006a9d0
movzx eax, bl
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140087840
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret