Function at 0x1400016f1
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rsi, rcx
lea rdi, [rsp + 0x50]
mov r8d, 7
mov rcx, rdi
call fcn.140005810
mov rax, qword [rdi]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400017b0
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
and qword [rsp + 0x90], 0
movaps xmm0, xmmword [0x140026470]
movups xmmword [rsp + 0x50], xmm0
mov rax, qword [0x1400fd110]
cmp rax, 3
jne 0x140001a4b
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x90]
mov rcx, r14
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400017d4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor ecx, ecx
call fcn.14000f030
mov rcx, r14
mov rdx, rbx
call fcn.14000f030
jmp 0x1400019a5
lea rdi, str.data_provided_contains_a_nul_byte
test rax, rax
je 0x1400019a5
mov rcx, qword [rsp + 0x58]
mov edx, 1
call fcn.140005570
jmp 0x1400019a5
mov rdi, qword [rsp + 0x90]
xor ecx, ecx
call fcn.14000f030
mov rcx, r14
mov rdx, rbx
call fcn.14000f030
lea rax, [rsp + 0x48]
and qword [rax], 0
lea rdx, [rsp + 0xc0]
mov qword [rdx], rax
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rdi
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.14000ec37
cmp byte [rdi], 2
jne 0x140001845
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140001ada
mov edi, 1
xor r15d, r15d
jmp 0x140001997
mov ecx, 0x44
call fcn.14000f009
test rax, rax
je 0x140001acb
mov rdi, rax
lea rax, [rsp + 0x50]
movups xmm0, xmmword [rax]
mov al, byte [rax + 0x10]
mov byte [rdi + 0x10], al
movups xmmword [rdi], xmm0
mov rax, qword [rsp + 0xd0]
lea r12, [rsp + 0x90]
mov qword [r12 + 0x10], rax
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [r12], xmm0
mov ebp, 1
mov r15d, 4
mov r14d, 0x11
lea r13, [rsp + 0xaf]
mov rcx, r13
mov rdx, r12
call fcn.14000ec37
cmp byte [rsp + 0xaf], 2
je 0x14000197f
cmp rbp, r15
jne 0x14000195a
mov rbx, r15
inc rbx
je 0x140001abc
lea rax, [r15 + r15]
cmp rax, rbx
cmova rbx, rax
cmp rbx, 5
jae 0x1400018eb
mov ebx, 4
xor edx, edx
movabs rax, 0x787878787878788
cmp rbx, rax
setb al
test r15, r15
je 0x140001917
imul rcx, r15, 0x11
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rcx
mov ecx, 1
jmp 0x140001919
xor ecx, ecx
imul r8, rbx, 0x11
mov dl, al
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x50]
call fcn.14000ef88
cmp qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
je 0x140001954
movabs rax, 0x8000000000000001
cmp rcx, rax
je 0x14000195a
jmp 0x140001ab7
mov r15, rbx
mov rdi, rcx
mov al, byte [rsp + 0xbf]
mov byte [rdi + r14 + 0x10], al
movups xmm0, xmmword [rsp + 0xaf]
movups xmmword [rdi + r14], xmm0
inc rbp
add r14, 0x11
jmp 0x1400018a7
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400019d3
mov rcx, r15
mov rdx, rdi
call fcn.14000f016
mov rdi, rbx
and qword [rsi], 0
mov qword [rsi + 8], 1
and qword [rsi + 0x10], 0
mov rcx, rdi
call fcn.140001060
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x1400019a5
test rbp, rbp
je 0x140001ada
and qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 1
and qword [rsp + 0x40], 0
mov qword [rsp + 0x80], 0x20
mov byte [rsp + 0x88], 3
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [0x140026820]
mov qword [rsp + 0x78], rax
cmp byte [rdi], 0
je 0x140001a84
lea rcx, [rdi + 1]
lea rdx, [rsp + 0x50]
call fcn.1400084a0
jmp 0x140001a92
lea rax, [rsp + 0xc0]
mov byte [rax], 1
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rax, [0x1400f2680]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400fd110]
lea r9, [0x1400f2460]
xor edx, edx
call fcn.140024a40
jmp 0x14000176d
lea rcx, [rdi + 1]
lea rdx, [rsp + 0x50]
call fcn.1400082d0
test al, al
jne 0x140001aea
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rcx, r15
mov rdx, rdi
call fcn.14000f016
jmp 0x1400019be
test rcx, rcx
jne 0x140001ac1
call fcn.140005700
mov rdx, qword [rsp + 0x40]
call fcn.140023dc0
mov ecx, 1
mov edx, 0x44
call fcn.140023dc0
lea r8, [0x140026c60]
xor ecx, ecx
xor edx, edx
call fcn.140023f50
lea rax, [0x140026888]
mov qword [rsp + 0x20], rax
lea rcx, str.a_Display_implementation_returned_an_error_unexpectedly
lea r9, [0x1400268c0]
lea r8, [rsp + 0x90]
mov edx, 0x37
call fcn.140024340
int3