Function at 0x14006b760
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x1b0], xmm7
movdqa xmmword [rbp + 0x1a0], xmm6
mov qword [rbp + 0x198], 0xfffffffffffffffe
mov rbx, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140016260
cmp word [rbp - 0x60], 2
jne 0x14006b8a8
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x38], rax
mov r15b, 0x3a
mov rdi, rbx
jmp 0x14006b7f9
cmp rdi, rbx
ja 0x14006b8f1
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.140019270
cmp rax, 1
jne 0x14006b8f1
mov rdi, rdx
cmp rdx, rbx
jae 0x14006b7f0
cmp byte [r14 + rdi], r15b
jne 0x14006b7f0
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.14001a190
mov ebx, eax
test bl, 1
jne 0x14006b925
shr ebx, 0x10
mov rax, qword [0x14024a600]
cmp rax, 3
jne 0x14006bca5
cmp rdi, 0x17f
ja 0x14006bcb7
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x14006b92e
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x14006b9d2
inc rcx
cmp r12, rcx
jne 0x14006b890
jmp 0x14006ba3a
movzx eax, byte [0x14024a6a0]
mov ecx, 0x20
call fcn.140010290
test rax, rax
je 0x14006bcd8
movdqu xmm0, xmmword [rbp - 0x60]
movdqu xmm1, xmmword [rbp - 0x50]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
jmp 0x14006b903
lea rax, str.invalid_socket_address
mov qword [rsi + 8], rax
mov qword [rsi], 0
movaps xmm6, xmmword [rbp + 0x1a0]
movaps xmm7, xmmword [rbp + 0x1b0]
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.invalid_port_value
jmp 0x14006b8f8
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x14006b95d
je 0x14006b95d
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x14006b9d2
inc rcx
cmp rax, rcx
jne 0x14006b93f
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x14006b963
jmp 0x14006b9ac
lea rcx, [rdi - 0xf]
xor eax, eax
movabs rdx, 0xfefefefefefefeff
movabs r8, 0x8080808080808080
mov r9, qword [rbp + rax - 0x60]
mov r10, r9
not r10
add r9, rdx
and r9, r10
test r9, r8
jne 0x14006b9ac
mov r9, qword [rbp + rax - 0x58]
mov r10, r9
not r10
add r9, rdx
and r9, r10
test r9, r8
jne 0x14006b9ac
add rax, 0x10
cmp rax, rcx
jbe 0x14006b977
sub r12, rax
je 0x14006ba3a
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x14006b9cf
inc rcx
cmp r12, rcx
jne 0x14006b9bf
jmp 0x14006ba3a
add rcx, rax
cmp rcx, rdi
jne 0x14006ba3a
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14006baab
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14006ba41
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x160], rax
mov eax, 1
test rax, rax
je 0x14006ba5e
mov rax, qword [rbp + 0x160]
jmp 0x14006b8f8
mov rcx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x168]
test rax, rax
je 0x14006ba97
movzx r13d, word [rbp + 0x170]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x14006baf5
cmp edx, 2
je 0x14006bacb
mov rax, r15
test r15, r15
jne 0x14006ba79
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x14006bc8a
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], rax
mov word [rbp + 0x170], bx
xor eax, eax
jmp 0x14006ba4d
mov qword [rbp + 0x188], rcx
cmp qword [rax + 0x10], 0x10
jb 0x14006bd35
mov ebx, dword [r8 + 4]
mov eax, ebx
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, r13d, 1
xor r12d, r12d
jmp 0x14006bb1f
mov qword [rbp + 0x188], rcx
cmp qword [rax + 0x10], 0x1c
jb 0x14006bd56
movdqu xmm6, xmmword [r8 + 8]
mov r14d, dword [r8 + 4]
mov edi, dword [r8 + 0x18]
pshufd xmm7, xmm6, 0xf9
mov r12w, 1
movzx eax, byte [0x14024a6a0]
mov ecx, 0x80
call fcn.140010290
test rax, rax
je 0x14006bce9
mov word [rax], r12w
mov word [rax + 2], bx
movd dword [rax + 4], xmm6
movq qword [rax + 8], xmm7
pshufd xmm0, xmm7, 0xee
movd dword [rax + 0x10], xmm0
mov dword [rax + 0x14], r14d
mov dword [rax + 0x18], edi
mov word [rax + 0x1c], r13w
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 4
mov qword [rbp - 0x50], 1
mov edi, 1
lea rcx, [rbp - 0x60]
jmp 0x14006bbd3
pshufd xmm0, xmm6, 0xf9
mov rdx, rdi
shl rdx, 5
mov word [rax + rdx], r14w
mov word [rax + rdx + 2], r12w
movd dword [rax + rdx + 4], xmm7
pshufd xmm1, xmm0, 0xee
movd dword [rax + rdx + 0x10], xmm1
movq qword [rax + rdx + 8], xmm0
mov r8d, dword [rbp + 0x184]
mov dword [rax + rdx + 0x14], r8d
mov r8d, dword [rbp + 0x180]
mov dword [rax + rdx + 0x18], r8d
mov word [rax + rdx + 0x1c], r13w
inc rdi
mov qword [rbp - 0x50], rdi
test r15, r15
je 0x14006bc75
mov rdx, r15
nop
mov r9, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r9]
cmp r8d, 0x17
je 0x14006bc26
cmp r8d, 2
je 0x14006bc02
mov rdx, r15
test r15, r15
jne 0x14006bbe0
jmp 0x14006bc75
cmp qword [rdx + 0x10], 0x10
jb 0x14006bd01
mov r12d, dword [r9 + 4]
mov edx, r12d
shr edx, 0x10
movd xmm7, edx
pinsrw xmm7, r13d, 1
xor r14d, r14d
jmp 0x14006bc54
cmp qword [rdx + 0x10], 0x1c
jb 0x14006bd1b
movdqu xmm6, xmmword [r9 + 8]
mov edx, dword [r9 + 4]
mov dword [rbp + 0x184], edx
mov edx, dword [r9 + 0x18]
mov dword [rbp + 0x180], edx
mov r14w, 1
movdqa xmm7, xmm6
cmp rdi, qword [rbp - 0x58]
jne 0x14006bb80
mov rbx, rcx
mov rdx, rdi
call fcn.14018f170
mov rax, qword [rbp - 0x60]
mov rcx, rbx
jmp 0x14006bb80
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
shl rdi, 5
add rdi, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x14006b903
call fcn.14018f230
cmp rdi, 0x17f
jbe 0x14006b860
lea rcx, [rbp + 0x158]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.14018f290
mov rax, qword [rbp + 0x158]
jmp 0x14006ba4d
mov ecx, 4
mov edx, 0x20
call fcn.14018c620
ud2
mov byte [rbp + 0x197], 1
mov ecx, 4
mov edx, 0x80
call fcn.14018c620
jmp 0x14006bd75
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401b9c78]
mov edx, 0x42
call fcn.14018c980
jmp 0x14006bd75
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401b9cd8]
mov edx, 0x43
call fcn.14018c980
jmp 0x14006bd75
mov byte [rbp + 0x197], 1
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1401b9c78]
mov edx, 0x42
call fcn.14018c980
jmp 0x14006bd75
mov byte [rbp + 0x197], 1
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1401b9cd8]
mov edx, 0x43
call fcn.14018c980
ud2