Function at 0x14007bec0
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 [0x1400b89e8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r13, rcx
xor r14d, r14d
mov eax, r14d
xchg byte [rcx + 8], al
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rdx + rdi], r14b
jne 0x14007bf12
cmp rdi, 0x100
jb 0x14007bf39
lea rdx, str.CONNECT_error:_Pool_address_overflow.
mov rcx, qword [rcx + 0x10]
call fcn.140078b90
jmp 0x14007c37a
mov r8, rdi
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x50], r14b
lea rdx, [0x14009d7f8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x14007bf7c
nop
lea rbx, [rbx + 1]
cmp byte [rax + rbx + 2], r14b
jne 0x14007bf60
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 0x14007bfa4
lea rdx, str.CONNECT_error:_Pool_port_number_not_specified__please_use_format__hostname_:_port_.
mov rcx, qword [r13 + 0x10]
call fcn.140078b90
jmp 0x14007c37a
mov byte [rax], r14b
lea rdx, [rax + 1]
mov qword [rsp + 0x70], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 6
lea rdi, [r13 + 0x20]
mov qword [rdi], r14
mov r9, rdi
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14007c005
mov r8d, eax
lea rdx, str.CONNECT_error:_GetAddrInfo:
mov rcx, qword [r13 + 0x10]
call fcn.140078d50
jmp 0x14007c37a
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rsi, r14
mov qword [rsp + 0x58], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov r15, r14
mov qword [rsp + 0x40], r14
movdqu xmmword [rsp + 0x48], xmm0
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x50]
test rax, rax
je 0x14007c0f5
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
nop dword [rax]
cmp dword [rax + 4], 2
jne 0x14007c08a
cmp rbx, r14
je 0x14007c069
mov qword [r14], rax
add r14, 8
mov qword [rsp + 0x60], r14
jmp 0x14007c08a
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.14004d740
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
cmp dword [rax + 4], 0x17
jne 0x14007c0c4
cmp r12, rdi
je 0x14007c0a3
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x48], rdi
jmp 0x14007c0c4
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14004d740
mov rax, qword [rsp + 0x30]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14007c050
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x40]
cmp rsi, r14
jne 0x14007c15c
cmp r15, rdi
jne 0x14007c196
lea rdi, [r13 + 0x20]
xor r14d, r14d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rdi], r14
lea rdx, str.CONNECT_error:_I_found_some_DNS_records_but_no_IPv4_or_IPv6_addresses.
mov rcx, qword [r13 + 0x10]
call fcn.140078b90
movzx edi, al
test r15, r15
je 0x14007c337
sub r12, r15
sar r12, 3
lea rdx, [r12*8]
mov rax, r15
cmp rdx, 0x1000
jb 0x14007c32e
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c32e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp r15, rdi
jne 0x14007c17b
sub r14, rsi
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 [rsi + rdx*8]
jmp 0x14007c1ae
cmp rsi, r14
je 0x14007c1b2
cmp r15, rdi
je 0x14007c1b2
call fcn.140042490
mov rcx, rax
call fcn.14004c280
test al, al
jne 0x14007c161
sub rdi, r15
sar rdi, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div rdi
mov rax, qword [r15 + rdx*8]
mov qword [r13 + 0x18], rax
mov rax, qword [r13 + 0x18]
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 [r13 + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x14007c27e
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [r13 + 0x20], 0
lea rdx, str.CONNECT_error:_Socket_creation_failed
mov rcx, qword [r13 + 0x10]
call fcn.140078c00
movzx edi, al
test r15, r15
je 0x14007c23e
sub r12, r15
sar r12, 3
lea rdx, [r12*8]
mov rax, r15
cmp rdx, 0x1000
jb 0x14007c235
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c235
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14008c5c0
nop
test rsi, rsi
je 0x14007c376
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x14007c36b
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c36b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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
test r15, r15
je 0x14007c2eb
sub r12, r15
sar r12, 3
lea rdx, [r12*8]
mov rax, r15
cmp rdx, 0x1000
jb 0x14007c2e2
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c2e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14008c5c0
nop
test rsi, rsi
je 0x14007c32a
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x14007c31f
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c31f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rsi
call fcn.14008c5c0
mov al, 1
jmp 0x14007c37a
mov rcx, r15
call fcn.14008c5c0
nop
test rsi, rsi
je 0x14007c376
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x14007c36b
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007c36b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rsi
call fcn.14008c5c0
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14008ccd0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret