Function at 0x140001e50
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x48], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], setsockopt
mov byte [rsp + 0x70], r15b
mov qword [rbp - 0x70], r15
movdqu xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 6
cmp qword [rdx + 0x18], 0x10
jb 0x140001ed4
mov rax, qword [rdx]
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001f06
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], setsockopt
mov byte [rdi], 0
jmp 0x1400020d4
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400020b9
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14000ad10]
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x50], 0
mov rax, qword [rbx + 0x20]
cmp dword [rbx + 4], 2
lea rsi, [rax + 4]
je 0x140001f41
lea rsi, [rax + 8]
lea rax, str.IPv6
lea rdx, str.IPv4
cmovne rdx, rax
mov r8d, 4
lea rcx, [rsp + 0x50]
call fcn.1400064a0
mov r9d, 0x41
lea r8, [rbp - 0x40]
mov rdx, rsi
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntop]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rax, [rbp - 0x40]
mov rdx, 0xffffffffffffffff
mov rbx, rdx
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001f90
movabs r14, 0x7fffffffffffffff
cmp rbx, r14
ja 0x14000210a
cmp rbx, 0x10
jae 0x140001fdb
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], setsockopt
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
jmp 0x14000206d
mov rax, rbx
or rax, 0xf
cmp rax, r14
ja 0x140001ff6
mov r14, rax
mov ecx, socket
cmp rax, rcx
cmovb r14, rcx
mov rcx, r14
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x140002039
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002104
mov rcx, rax
call fcn.140007d14
test rax, rax
je 0x140002032
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000204b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140002048
call fcn.140007d14
mov rsi, rax
jmp 0x14000204b
mov rsi, r15
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
movups xmm6, xmmword [rsp + 0x20]
movups xmm7, xmmword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400020c2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007b90
jmp 0x1400020c2
movups xmm7, xmmword [rbp - 0x80]
movups xmm6, xmmword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movups xmmword [rdi], xmm6
movups xmmword [rdi + 0x10], xmm7
mov rax, rdi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140007b70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001180
nop
call fcn.140001220
int3