Function at 0x140287f04
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140287f61
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 0x140288033
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004a9e4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___GetFileVersionInfoSize
lea rcx, [rbp + 0x70]
call fcn.1400928f0
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.140288764
lea rcx, [rbp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp + 0x50]
call fcn.14004b500
lea rdx, [0x1403074f2]
mov rcx, r14
call fcn.1400641dc
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140288315
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x14028830d
test cl, 0x1f
jne 0x14028802c
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x14028802c
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14028830d
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.1400625d4
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14028804d
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 0x140288120
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004a9e4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___GetFileVersionInfo
lea rcx, [rbp + 0x70]
call fcn.1400928f0
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.140288764
lea rcx, [rbp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp + 0x50]
call fcn.14004b500
lea rdx, [0x1403074f2]
mov rcx, r14
call fcn.1400641dc
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140288315
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x14028830d
test cl, 0x1f
jne 0x140288119
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x140288119
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14028830d
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, [0x14030f790]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
jne 0x1402881ff
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14004a9e4
nop
mov r8, rbx
lea rdx, str.Failed_getting_file_version___VerQueryValue
lea rcx, [rbp + 0x70]
call fcn.1400928f0
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.140288764
lea rcx, [rbp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp + 0x50]
call fcn.14004b500
lea rdx, [0x1403074f2]
mov rcx, r14
call fcn.1400641dc
nop
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140288315
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x14028830d
test cl, 0x1f
jne 0x1402881f8
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1402881f8
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14028830d
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.140256b48
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, [0x140324370]
call fcn.1400b7efc
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, [0x140324370]
call fcn.1400b7efc
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, [0x140324370]
call fcn.1400b7efc
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.1401755c0
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.140175f38
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 0x140288315
mov rcx, rdx
mov rax, qword [rsp + 0x30]
sub rax, rdx
cmp rax, 0x1000
jb 0x14028830d
test cl, 0x1f
jne 0x140288306
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x140288306
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14028830d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.1402aed28
mov rax, r14
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret