Function at 0x1400058f0
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 [0x140035040]
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 0x140005934
mov rcx, qword [rdx]
lea rdx, [rbp + 0x68]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r14d, eax
test eax, eax
jne 0x140005982
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.140014240
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.140014f00
jmp 0x140005a48
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.1400186d0
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 0x1400059ba
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 0x140005a72
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.140014240
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.140014f00
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005a48
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005b05
call fcn.140025af0
mov rax, r13
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140025ad0
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, [0x140029ed0]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x140005b0c
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.140014240
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.140014f00
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005a48
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a43
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.1400015f0
mov r15, rax
mov edx, ebx
lea rcx, [rbp + 8]
call fcn.1400015f0
mov r14, rax
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.1400015f0
mov rbx, rax
mov edx, esi
lea rcx, [rbp - 0x38]
call fcn.1400015f0
nop
mov r8d, 1
lea rdx, [0x140029ae0]
mov rcx, rax
call fcn.14000e430
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.140018800
nop
mov r8d, 1
lea rdx, [0x140029ae0]
lea rcx, [rsp + 0x48]
call fcn.14000e430
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.140018800
nop
mov r8d, 1
lea rdx, [0x140029ae0]
lea rcx, [rsp + 0x28]
call fcn.14000e430
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.140018800
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140005c6e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140005cae
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ca9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ca9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140005d00
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cfa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cfa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005d40
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140005d92
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140005dd0
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005dcb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140005e1f
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140005e6e
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x140005ebd
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005eb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005eb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025af0
movdqa xmm0, xmmword [0x14002d920]
movdqu xmmword [rbp + 0x38], xmm0
mov byte [rbp + 0x28], 0
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140005a48
mov rdx, qword [rbp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3