Function at 0x140006180
Capabilities:
Get file version info
Reference cloudflare dns server

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov r13, rcx
mov qword [rbp + 0x48], rcx
xor r12d, r12d
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400061c4
mov rcx, qword [rdx]
lea rdx, [rbp + 0x68]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r14d, eax
test eax, eax
jne 0x140006212
lea rdx, str.Error_getting_version_info_size._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400127f0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], r12
mov r8d, 7
lea rdx, str.1.0.0.1
mov rcx, r13
call fcn.140013380
jmp 0x1400062d8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.140016e90
mov rcx, qword [rbp + 0x50]
lea rbx, [r14 + rcx]
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x58], rbx
cmp qword [rsi + 0x18], 0xf
jbe 0x14000624a
mov rsi, qword [rsi]
mov r9, qword [rbp + 0x50]
mov r8d, r14d
mov edx, dword [rbp + 0x68]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140006302
lea rdx, str.Error_getting_version_info._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400127f0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], r12
mov r8d, 7
lea rdx, str.1.0.0.1
mov rcx, r13
call fcn.140013380
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400062d8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006395
call fcn.14001b9e0
mov rax, r13
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001b9c0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rbp + 0x6c]
lea r8, [rbp + 0x48]
lea rdx, [0x14001ed80]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x14000639c
lea rdx, str.Error_querying_version_info._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400127f0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], r12
mov r8d, 7
lea rdx, str.1.0.0.1
mov rcx, r13
call fcn.140013380
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400062d8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400062d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + 8]
mov esi, eax
shr esi, 0x10
movzx edi, ax
mov eax, dword [rcx + 0xc]
mov ebx, eax
shr ebx, 0x10
movzx edx, ax
lea rcx, [rbp + 0x28]
call fcn.1400018e0
mov r15, rax
mov edx, ebx
lea rcx, [rbp + 8]
call fcn.1400018e0
mov r14, rax
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.1400018e0
mov rbx, rax
mov edx, esi
lea rcx, [rbp - 0x38]
call fcn.1400018e0
nop
mov r8d, 1
lea rdx, [0x14001e8d8]
mov rcx, rax
call fcn.14000ce40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, rbx
lea r8, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.140016fc0
nop
mov r8d, 1
lea rdx, [0x14001e8d8]
lea rcx, [rsp + 0x48]
call fcn.14000ce40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, r14
lea r8, [rbp - 0x78]
lea rcx, [rsp + 0x28]
call fcn.140016fc0
nop
mov r8d, 1
lea rdx, [0x14001e8d8]
lea rcx, [rsp + 0x28]
call fcn.14000ce40
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, r15
lea r8, [rsp + 0x68]
mov rcx, r13
call fcn.140016fc0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400064fe
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400064f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400064f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000653e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140006590
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000658a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000658a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400065d0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400065cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140006622
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000661c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000661c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140006660
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000665b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000665b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400066af
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400066aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x1400066fe
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400066f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14000674d
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006748
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006748
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b9e0
movdqa xmm0, xmmword [0x140021290]
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400062d8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400062d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3