Function at 0x1402a9428
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1402a948b
mov rdx, qword [r8]
xor r8d, r8d
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov edi, eax
test eax, eax
jne 0x1402a956f
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r12w
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004d5c4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___GetFileVersionInfoSize
lea rcx, [rbp + 0x70]
call fcn.1400991d4
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov r9, rbx
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.1402a9cc4
lea rcx, [rbp + 0x70]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x50]
call fcn.14004e0f0
lea rdx, [0x14033f0f2]
mov rcx, r14
call fcn.1400673e4
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1402a9875
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x1402a986d
test cl, 0x1f
jne 0x1402a9568
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1402a9568
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1402a986d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400657b4
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402a9589
mov rcx, qword [rbx]
mov r9, qword [rsp + 0x20]
mov r8d, edi
xor edx, edx
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1402a966e
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r12w
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004d5c4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___GetFileVersionInfo
lea rcx, [rbp + 0x70]
call fcn.1400991d4
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov r9, rbx
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.1402a9cc4
lea rcx, [rbp + 0x70]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x50]
call fcn.14004e0f0
lea rdx, [0x14033f0f2]
mov rcx, r14
call fcn.1400673e4
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1402a9875
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x1402a986d
test cl, 0x1f
jne 0x1402a9667
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1402a9667
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1402a986d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [0x140347380]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
jne 0x1402a975f
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r12w
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004d5c4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___VerQueryValue
lea rcx, [rbp + 0x70]
call fcn.1400991d4
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov r9, rbx
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.1402a9cc4
lea rcx, [rbp + 0x70]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x50]
call fcn.14004e0f0
lea rdx, [0x14033f0f2]
mov rcx, r14
call fcn.1400673e4
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1402a9875
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x1402a986d
test cl, 0x1f
jne 0x1402a9758
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1402a9758
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1402a986d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x50]
call fcn.14026d178
nop
mov rax, qword [rsp + 0x40]
movzx esi, word [rax + 0xc]
movzx edi, word [rax + 0xe]
movzx ebx, word [rax + 8]
movzx edx, word [rax + 0xa]
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14035ca40]
call fcn.1400c2470
mov rcx, rax
mov edx, ebx
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14035ca40]
call fcn.1400c2470
mov rcx, rax
mov edx, edi
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14035ca40]
call fcn.1400c2470
mov rcx, rax
mov edx, esi
call qword [sym.imp.msvcp_win.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.140181680
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.140181ff8
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcp_win.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.msvcp_win.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1402a9875
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x1402a986d
test cl, 0x1f
jne 0x1402a9866
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1402a9866
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1402a986d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.1402e0278
mov rax, r14
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret