Function at 0x140005c60
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 [0x140026040]
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 0x140005ca4
mov rcx, qword [rdx]
lea rdx, [rbp + 0x68]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r14d, eax
test eax, eax
jne 0x140005cf2
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.1400111c0
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.140011d50
jmp 0x140005db8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.140015860
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 0x140005d2a
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 0x140005de2
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.1400111c0
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.140011d50
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005db8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005e75
call fcn.14001a1f0
mov rax, r13
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001a1d0
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, [0x14001dd08]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x140005e7c
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.1400111c0
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.140011d50
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005db8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005db3
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, [0x14001d8f8]
mov rcx, rax
call fcn.14000b810
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.140015990
nop
mov r8d, 1
lea rdx, [0x14001d8f8]
lea rcx, [rsp + 0x48]
call fcn.14000b810
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.140015990
nop
mov r8d, 1
lea rdx, [0x14001d8f8]
lea rcx, [rsp + 0x28]
call fcn.14000b810
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.140015990
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140005fde
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005fd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000601e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006019
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006019
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140006070
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000606a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000606a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400060b0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400060ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140006102
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400060fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140006140
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000613b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000613b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x14000618f
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000618a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000618a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x1400061de
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400061d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14000622d
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006228
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006228
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001a1f0
movdqa xmm0, xmmword [0x140020030]
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005db8
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005db3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3