Function at 0x14009f4b0
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.14002f600
mov r14, rax
test r14b, 1
je 0x14009f5a5
mov r15, qword [rbp + 0x188]
test r15, r15
je 0x14009f571
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 0x14009f571
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.140030040
cmp ax, 1
jne 0x14009f573
jmp 0x14009f57f
xor eax, eax
mov qword [rbp + 0x188], r15
test ax, ax
je 0x14009f5a5
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 0x14009f5aa
xor r14d, r14d
xor eax, eax
or rax, r14
cmp ax, 1
je 0x14009f6c9
movzx ecx, ax
mov rax, rbx
test ecx, ecx
jne 0x14009f6d0
test rbx, rbx
je 0x14009f88c
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 0x14009f88c
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x180]
call fcn.14002fc40
cmp byte [rbp - 0x50], 0
je 0x14009f88c
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 0x14009f779
cmp byte [r13], 0x25
jne 0x14009f7b6
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 0x14009f6a3
movzx r13d, byte [r11]
add r13d, 0xffffffd0
xor eax, eax
cmp r13d, 0xa
setb al
jae 0x14009f6a3
inc r11
dec r10
cmp eax, 1
jne 0x14009f77b
mov eax, r15d
mul r8d
jo 0x14009f799
mov r15d, eax
add r15d, r13d
jb 0x14009f799
dec r12
jmp 0x14009f680
mov rax, qword [rbp + 0x188]
test rax, rax
jne 0x14009f89a
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 [0x1401c6e31]
mov ecx, 0x20
mov edx, 4
call fcn.140029fb0
test rax, rax
je 0x14009fdee
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 0x14009f944
jmp 0x14009f7b6
test r12, r12
je 0x14009f796
mov r9d, 1
mov qword [rbp + 0x1b8], r10
mov qword [rbp + 0x1c8], r11
jmp 0x14009f799
xor r9d, r9d
mov r13, qword [rbp + 0x1c0]
cmp r9d, 1
jne 0x14009f7b6
mov r13, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1b8]
jmp 0x14009f7bd
test r9d, r9d
cmove r15d, r9d
test rcx, rcx
je 0x14009f88c
cmp byte [r13], 0x5d
jne 0x14009f88c
mov r8, rcx
dec r8
je 0x14009f82d
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 0x14009f82d
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.140030040
mov r8, r12
mov r12d, edx
cmp ax, 1
jne 0x14009f82f
jmp 0x14009f845
xor eax, eax
inc r13
mov qword [rbp + 0x180], r13
mov qword [rbp + 0x188], r8
test ax, ax
je 0x14009f88c
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 0x14009f89a
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 0x14009f6e6
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 0x14009f8d9
mov qword [rbp - 0x38], r14
cmp r14, rbx
ja 0x14009f932
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call fcn.140032950
cmp rax, 1
jne 0x14009f932
mov r14, rdx
cmp rdx, 0xffffffffffffffff
je 0x14009f8d0
mov r12, r14
inc r12
cmp r12, rbx
ja 0x14009f8d0
movzx eax, byte [rdi + r14]
cmp al, byte [rbp - 0x28]
jne 0x14009f8d0
lea rcx, str.invalid_port_value
sub rbx, r12
je 0x14009f939
lea r8, [rdi + r12]
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x14009f966
cmp eax, 0x2b
jne 0x14009f96c
dec rbx
je 0x14009f939
inc r8
jmp 0x14009f96c
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 0x14009f939
cmp rbx, 5
jae 0x14009f9f8
xor eax, eax
xor r15d, r15d
nop dword [rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x14009f939
add r15d, r15d
lea r15d, [r15 + r15*4]
add r15d, edx
inc rax
cmp rbx, rax
jne 0x14009f980
mov rax, qword [0x1401c6d90]
cmp rax, 3
jne 0x14009fdbb
cmp r14, 0x17f
ja 0x14009fdcd
lea rcx, [rbp - 0x50]
mov rdx, rdi
mov r8, r14
call fcn.1400ffbc0
mov byte [rbp + r14 - 0x50], 0
cmp r14, 0xe
ja 0x14009fa4b
lea rax, [r14 + 1]
xor ecx, ecx
nop
cmp byte [rbp + rcx - 0x50], 0
je 0x14009fae3
inc rcx
cmp rax, rcx
jne 0x14009f9e0
jmp 0x14009fb4b
xor r9d, r9d
mov r10w, 0xa
xor r15d, r15d
nop word cs:[rax + rax]
cmp rbx, r9
je 0x14009f99f
movzx r11d, byte [r8 + r9]
mov eax, r15d
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x14009f939
test dl, dl
jne 0x14009f939
mov r15d, eax
inc r9
add r15w, r11w
jae 0x14009fa10
jmp 0x14009f939
xor eax, eax
mov cl, 1
test cl, cl
jne 0x14009fa73
jne 0x14009fa73
xor ecx, ecx
cmp byte [rbp + rcx - 0x50], 0
je 0x14009fae3
inc rcx
jne 0x14009fa57
xor ecx, ecx
test cl, cl
jne 0x14009fac2
lea rcx, [r14 - 0xf]
jmp 0x14009fa79
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 0x14009fac2
mov r9, qword [rbp + rax - 0x48]
mov r10, r9
not r10
add r9, rdx
and r9, r10
test r9, r8
jne 0x14009fac2
add rax, 0x10
cmp rax, rcx
jbe 0x14009fa8d
cmp r12, rax
je 0x14009fb4b
lea rcx, [r14 + 1]
cmp byte [rbp + rax - 0x50], 0
je 0x14009fae0
inc rax
cmp rcx, rax
jne 0x14009facf
jmp 0x14009fb4b
mov rcx, rax
cmp rcx, r14
jne 0x14009fb4b
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 0x14009fbbc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14009fb52
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x168], rax
mov eax, 1
test rax, rax
je 0x14009fb6f
mov rcx, qword [rbp + 0x168]
jmp 0x14009f939
mov rcx, qword [rbp + 0x168]
mov rax, qword [rbp + 0x170]
test rax, rax
je 0x14009fba8
movzx r13d, word [rbp + 0x178]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x14009fc07
cmp edx, 2
je 0x14009fbdd
mov rax, r15
test r15, r15
jne 0x14009fb8a
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x14009fda0
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x170], rax
mov word [rbp + 0x178], r15w
xor eax, eax
jmp 0x14009fb5e
mov qword [rbp + 0x1c8], rcx
cmp qword [rax + 0x10], 0x10
jb 0x14009fe4b
mov ebx, dword [r8 + 4]
mov eax, ebx
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, r13d, 1
xor r12d, r12d
jmp 0x14009fc31
mov qword [rbp + 0x1c8], rcx
cmp qword [rax + 0x10], 0x1c
jb 0x14009fe6c
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 [0x1401c6e31]
mov ecx, 0x80
mov edx, 4
call fcn.140029fb0
test rax, rax
je 0x14009fdff
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 0x14009fcea
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 0x14009fd8b
mov rdx, r15
mov r9, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r9]
cmp r8d, 0x17
je 0x14009fd3c
cmp r8d, 2
je 0x14009fd18
mov rdx, r15
test r15, r15
jne 0x14009fcf6
jmp 0x14009fd8b
cmp qword [rdx + 0x10], 0x10
jb 0x14009fe17
mov r12d, dword [r9 + 4]
mov edx, r12d
shr edx, 0x10
movd xmm7, edx
pinsrw xmm7, r13d, 1
xor r14d, r14d
jmp 0x14009fd6a
cmp qword [rdx + 0x10], 0x1c
jb 0x14009fe31
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 0x14009fc97
mov rbx, rcx
mov rdx, rdi
call fcn.140111c90
mov rax, qword [rbp - 0x50]
mov rcx, rbx
jmp 0x14009fc97
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 0x14009f944
call fcn.140111d50
cmp r14, 0x17f
jbe 0x14009f9bd
lea rcx, [rbp + 0x160]
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call fcn.140111db0
mov rax, qword [rbp + 0x160]
jmp 0x14009fb5e
mov ecx, 4
mov edx, 0x20
call fcn.14010e7f0
ud2
mov byte [rbp + 0x1d7], 1
mov ecx, 4
mov edx, 0x80
call fcn.14010e7f0
jmp 0x14009fe8b
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14013d6b8]
mov edx, 0x42
call fcn.14010ebd0
jmp 0x14009fe8b
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14013d718]
mov edx, 0x43
call fcn.14010ebd0
jmp 0x14009fe8b
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, [0x14013d6b8]
mov edx, 0x42
call fcn.14010ebd0
jmp 0x14009fe8b
mov byte [rbp + 0x1d7], 1
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14013d718]
mov edx, 0x43
call fcn.14010ebd0
ud2