Function at 0x14007e680
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x288
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x1f0], xmm7
movdqa xmmword [rbp + 0x1e0], xmm6
mov qword [rbp + 0x1d8], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x180], rdx
mov qword [rbp + 0x188], r8
lea rcx, [rbp + 0x180]
call fcn.14001b6a0
mov r14, rax
test r14b, 1
je 0x14007e775
mov r15, qword [rbp + 0x188]
test r15, r15
je 0x14007e741
mov rax, qword [rbp + 0x180]
lea rcx, [r15 - 1]
movzx edx, byte [rax]
inc rax
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rcx
cmp dl, 0x3a
jne 0x14007e741
mov dword [rbp - 0x40], 0xa
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x3c], 1
lea rcx, [rbp + 0x180]
lea rdx, [rbp - 0x50]
call fcn.14001c0e0
cmp ax, 1
jne 0x14007e743
jmp 0x14007e74f
xor eax, eax
mov qword [rbp + 0x188], r15
test ax, ax
je 0x14007e775
movabs rax, 0xffffffff00
and r14, rax
shr r14, 8
movzx eax, dx
shl rax, 0x30
shl r14, 0x10
or r14, rax
mov eax, 1
jmp 0x14007e77a
xor r14d, r14d
xor eax, eax
or rax, r14
cmp ax, 1
je 0x14007e899
movzx ecx, ax
mov rax, rbx
test ecx, ecx
jne 0x14007e8a0
test rbx, rbx
je 0x14007ea5c
lea rax, [rdi + 1]
lea rcx, [rbx - 1]
movzx edx, byte [rdi]
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rcx
cmp dl, 0x5b
jne 0x14007ea5c
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x180]
call fcn.14001bce0
cmp byte [rbp - 0x50], 0
je 0x14007ea5c
mov r14d, dword [rbp - 0x4f]
mov rax, qword [rbp - 0x4b]
mov qword [rbp + 0x160], rax
mov eax, dword [rbp - 0x43]
mov dword [rbp + 0x168], eax
mov r13, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x188]
xor r9d, r9d
test rcx, rcx
je 0x14007e949
cmp byte [r13], 0x25
jne 0x14007e986
mov qword [rbp + 0x1c0], r13
lea r11, [r13 + 1]
lea r10, [rcx - 1]
xor r12d, r12d
mov r8d, 0xa
mov qword [rbp + 0x1b8], r10
mov qword [rbp + 0x1c8], r11
xor r15d, r15d
xor r9d, r9d
nop word cs:[rax + rax]
mov eax, 0
test r10, r10
je 0x14007e873
movzx r13d, byte [r11]
add r13d, 0xffffffd0
xor eax, eax
cmp r13d, 0xa
setb al
jae 0x14007e873
inc r11
dec r10
cmp eax, 1
jne 0x14007e94b
mov eax, r15d
mul r8d
jo 0x14007e969
mov r15d, eax
add r15d, r13d
jb 0x14007e969
dec r12
jmp 0x14007e850
mov rax, qword [rbp + 0x188]
test rax, rax
jne 0x14007ea6a
mov rdi, r14
shr rdi, 0x10
shr r14, 0x18
xor ebx, ebx
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x158], eax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x150], rax
movzx eax, byte [0x14013f560]
mov ecx, 0x20
mov edx, 4
call fcn.14000c390
test rax, rax
je 0x14007efbe
mov word [rax], bx
mov rcx, r14
shl rcx, 8
movzx edx, dil
or rdx, rcx
shr r14, 0x18
mov word [rax + 6], r14w
mov dword [rax + 2], edx
mov rcx, qword [rbp + 0x150]
mov qword [rax + 8], rcx
mov ecx, dword [rbp + 0x158]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x14], 0
mov dword [rax + 0x18], r15d
mov word [rax + 0x1c], r12w
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 0x14007eb14
jmp 0x14007e986
test r12, r12
je 0x14007e966
mov r9d, 1
mov qword [rbp + 0x1b8], r10
mov qword [rbp + 0x1c8], r11
jmp 0x14007e969
xor r9d, r9d
mov r13, qword [rbp + 0x1c0]
cmp r9d, 1
jne 0x14007e986
mov r13, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1b8]
jmp 0x14007e98d
test r9d, r9d
cmove r15d, r9d
test rcx, rcx
je 0x14007ea5c
cmp byte [r13], 0x5d
jne 0x14007ea5c
mov r8, rcx
dec r8
je 0x14007e9fd
lea rax, [r13 + 2]
add rcx, 0xfffffffffffffffe
movzx edx, byte [r13 + 1]
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rcx
cmp dl, 0x3a
jne 0x14007e9fd
mov dword [rbp - 0x40], 0xa
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x3c], 1
lea rcx, [rbp + 0x180]
lea rdx, [rbp - 0x50]
mov r12, r8
call fcn.14001c0e0
mov r8, r12
mov r12d, edx
cmp ax, 1
jne 0x14007e9ff
jmp 0x14007ea15
xor eax, eax
inc r13
mov qword [rbp + 0x180], r13
mov qword [rbp + 0x188], r8
test ax, ax
je 0x14007ea5c
mov eax, dword [rbp + 0x168]
mov rcx, qword [rbp + 0x160]
mov qword [rbp + 0x140], rcx
mov dword [rbp + 0x148], eax
cmp qword [rbp + 0x188], 0
jne 0x14007ea6a
shl r14, 8
mov eax, dword [rbp + 0x148]
mov dword [rbp - 0x48], eax
mov rax, qword [rbp + 0x140]
mov qword [rbp - 0x50], rax
mov bx, 1
xor edi, edi
jmp 0x14007e8b6
mov qword [rbp + 0x180], rdi
mov qword [rbp + 0x188], rbx
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x30], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x28], rax
mov r14, rbx
jmp 0x14007eaa9
mov qword [rbp - 0x38], r14
cmp r14, rbx
ja 0x14007eb02
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call fcn.14001e7c0
cmp rax, 1
jne 0x14007eb02
mov r14, rdx
cmp rdx, 0xffffffffffffffff
je 0x14007eaa0
mov r12, r14
inc r12
cmp r12, rbx
ja 0x14007eaa0
movzx eax, byte [rdi + r14]
cmp al, byte [rbp - 0x28]
jne 0x14007eaa0
lea rcx, str.invalid_port_value
sub rbx, r12
je 0x14007eb09
lea r8, [rdi + r12]
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x14007eb36
cmp eax, 0x2b
jne 0x14007eb3c
dec rbx
je 0x14007eb09
inc r8
jmp 0x14007eb3c
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rbp + 0x1e0]
movaps xmm7, xmmword [rbp + 0x1f0]
add rsp, 0x288
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp rbx, 1
je 0x14007eb09
cmp rbx, 5
jae 0x14007ebc8
xor eax, eax
xor r15d, r15d
nop dword [rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x14007eb09
add r15d, r15d
lea r15d, [r15 + r15*4]
add r15d, edx
inc rax
cmp rbx, rax
jne 0x14007eb50
mov rax, qword [0x14013f4b0]
cmp rax, 3
jne 0x14007ef8b
cmp r14, 0x17f
ja 0x14007ef9d
lea rcx, [rbp - 0x50]
mov rdx, rdi
mov r8, r14
call fcn.1400ca0a0
mov byte [rbp + r14 - 0x50], 0
cmp r14, 0xe
ja 0x14007ec1b
lea rax, [r14 + 1]
xor ecx, ecx
nop
cmp byte [rbp + rcx - 0x50], 0
je 0x14007ecb3
inc rcx
cmp rax, rcx
jne 0x14007ebb0
jmp 0x14007ed1b
xor r9d, r9d
mov r10w, 0xa
xor r15d, r15d
nop word cs:[rax + rax]
cmp rbx, r9
je 0x14007eb6f
movzx r11d, byte [r8 + r9]
mov eax, r15d
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x14007eb09
test dl, dl
jne 0x14007eb09
mov r15d, eax
inc r9
add r15w, r11w
jae 0x14007ebe0
jmp 0x14007eb09
xor eax, eax
mov cl, 1
test cl, cl
jne 0x14007ec43
jne 0x14007ec43
xor ecx, ecx
cmp byte [rbp + rcx - 0x50], 0
je 0x14007ecb3
inc rcx
jne 0x14007ec27
xor ecx, ecx
test cl, cl
jne 0x14007ec92
lea rcx, [r14 - 0xf]
jmp 0x14007ec49
lea rcx, [r14 - 0xf]
xor eax, eax
movabs rdx, 0xfefefefefefefeff
movabs r8, 0x8080808080808080
mov r9, qword [rbp + rax - 0x50]
mov r10, r9
not r10
add r9, rdx
and r9, r10
test r9, r8
jne 0x14007ec92
mov r9, qword [rbp + rax - 0x48]
mov r10, r9
not r10
add r9, rdx
and r9, r10
test r9, r8
jne 0x14007ec92
add rax, 0x10
cmp rax, rcx
jbe 0x14007ec5d
cmp r12, rax
je 0x14007ed1b
lea rcx, [r14 + 1]
cmp byte [rbp + rax - 0x50], 0
je 0x14007ecb0
inc rax
cmp rcx, rax
jne 0x14007ec9f
jmp 0x14007ed1b
mov rcx, rax
cmp rcx, r14
jne 0x14007ed1b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x180], xmm0
movdqa xmmword [rbp + 0x1a0], xmm0
movdqa xmmword [rbp + 0x190], xmm0
mov dword [rbp + 0x188], 1
mov qword [rbp + 0x130], 0
lea rcx, [rbp - 0x50]
lea r8, [rbp + 0x180]
lea r9, [rbp + 0x130]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14007ed8c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14007ed22
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x168], rax
mov eax, 1
test rax, rax
je 0x14007ed3f
mov rcx, qword [rbp + 0x168]
jmp 0x14007eb09
mov rcx, qword [rbp + 0x168]
mov rax, qword [rbp + 0x170]
test rax, rax
je 0x14007ed78
movzx r13d, word [rbp + 0x178]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x14007edd7
cmp edx, 2
je 0x14007edad
mov rax, r15
test r15, r15
jne 0x14007ed5a
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x14007ef70
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x170], rax
mov word [rbp + 0x178], r15w
xor eax, eax
jmp 0x14007ed2e
mov qword [rbp + 0x1c8], rcx
cmp qword [rax + 0x10], 0x10
jb 0x14007f01b
mov ebx, dword [r8 + 4]
mov eax, ebx
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, r13d, 1
xor r12d, r12d
jmp 0x14007ee01
mov qword [rbp + 0x1c8], rcx
cmp qword [rax + 0x10], 0x1c
jb 0x14007f03c
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 [0x14013f560]
mov ecx, 0x80
mov edx, 4
call fcn.14000c390
test rax, rax
je 0x14007efcf
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 - 0x50], rax
mov qword [rbp - 0x48], 4
mov qword [rbp - 0x40], 1
mov edi, 1
lea rcx, [rbp - 0x50]
jmp 0x14007eeba
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 + 0x1b8]
mov dword [rax + rdx + 0x14], r8d
mov r8d, dword [rbp + 0x1c0]
mov dword [rax + rdx + 0x18], r8d
mov word [rax + rdx + 0x1c], r13w
inc rdi
mov qword [rbp - 0x40], rdi
test r15, r15
je 0x14007ef5b
mov rdx, r15
mov r9, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r9]
cmp r8d, 0x17
je 0x14007ef0c
cmp r8d, 2
je 0x14007eee8
mov rdx, r15
test r15, r15
jne 0x14007eec6
jmp 0x14007ef5b
cmp qword [rdx + 0x10], 0x10
jb 0x14007efe7
mov r12d, dword [r9 + 4]
mov edx, r12d
shr edx, 0x10
movd xmm7, edx
pinsrw xmm7, r13d, 1
xor r14d, r14d
jmp 0x14007ef3a
cmp qword [rdx + 0x10], 0x1c
jb 0x14007f001
movdqu xmm6, xmmword [r9 + 8]
mov edx, dword [r9 + 4]
mov dword [rbp + 0x1b8], edx
mov edx, dword [r9 + 0x18]
mov dword [rbp + 0x1c0], edx
mov r14w, 1
movdqa xmm7, xmm6
cmp qword [rbp - 0x48], rdi
jne 0x14007ee67
mov rbx, rcx
mov rdx, rdi
call fcn.1400d0250
mov rax, qword [rbp - 0x50]
mov rcx, rbx
jmp 0x14007ee67
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
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 0x14007eb14
call fcn.1400d0310
cmp r14, 0x17f
jbe 0x14007eb8d
lea rcx, [rbp + 0x160]
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call fcn.1400d0370
mov rax, qword [rbp + 0x160]
jmp 0x14007ed2e
mov ecx, 4
mov edx, 0x20
call fcn.1400cd4f0
ud2
mov byte [rbp + 0x1d7], 1
mov ecx, 4
mov edx, 0x80
call fcn.1400cd4f0
jmp 0x14007f05b
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1400f1518]
mov edx, 0x42
call fcn.1400cd8b0
jmp 0x14007f05b
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1400f1578]
mov edx, 0x43
call fcn.1400cd8b0
jmp 0x14007f05b
mov byte [rbp + 0x1d7], 1
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1400f1518]
mov edx, 0x42
call fcn.1400cd8b0
jmp 0x14007f05b
mov byte [rbp + 0x1d7], 1
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1400f1578]
mov edx, 0x43
call fcn.1400cd8b0
ud2