Function at 0x180008e80
Capabilities:
Get file version info

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 [0x1800bd040]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x180008eca
mov rcx, qword [rdx]
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
jne 0x180008f56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_getting_version_info_size:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180009de0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.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]
lea rdx, [0x180009fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp ebx, 0x7a
jne 0x180008f42
lea rdx, str.Insufficient_buffer_size._Expected_size:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180009de0
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCP140.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]
lea rdx, [0x180009fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x1800a586c]
mov rcx, r15
call fcn.180009b40
jmp 0x180009069
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
cmp r14, 0x1000
jb 0x180008f99
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x1800092fe
call fcn.180077788
mov rcx, rax
test rax, rax
je 0x1800092f7
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180008fa1
mov rcx, r14
call fcn.180077788
mov qword [rsp + 0x50], rax
lea rbx, [rax + r14]
mov qword [rsp + 0x60], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], rbx
cmp qword [rdi + 0x18], 7
jbe 0x180008fcb
mov rdi, qword [rdi]
mov r9, qword [rsp + 0x50]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x180009093
lea rdx, str.Error_getting_version_info:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180009de0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.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]
lea rdx, [0x180009fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x1800a586c]
mov rcx, r15
call fcn.180009b40
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180009069
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800092f7
call fcn.180077780
mov rax, r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180077760
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, [rsp + 0x68]
lea r8, [rsp + 0x48]
lea rdx, [0x1800a5890]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1800090bf
lea rdx, str.Error_querying_version_info:
jmp 0x180008fed
mov rax, qword [rsp + 0x48]
mov edi, dword [rax + 0x10]
mov ebx, edi
shr ebx, 0x10
mov r14d, dword [rax + 0x14]
mov esi, r14d
shr esi, 0x10
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1800a58bc]
mov qword [rsp + 0x70], rax
lea rax, [0x1800a58c4]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 2
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], r13
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], r8d
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], r12d
movzx edx, bx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.18000a000
movzx edx, di
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.18000a000
movzx edx, si
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
mov rcx, rax
call fcn.18000a000
movzx edx, r14w
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 7
mov word [r15], r12w
mov dword [rsp + 0x20], 0xa
movups xmmword [rsp + 0x30], xmm0
mov rcx, r12
mov r8d, dword [rbp - 8]
mov eax, r8d
and al, 0x22
cmp al, 2
je 0x180009212
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180009212
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rdx, qword [rbp - 0x10]
cmovb rdx, qword [rbp - 0x10]
sub rdx, r9
sar rdx, 1
mov rcx, r9
jmp 0x18000924b
test r8b, 4
jne 0x180009279
mov rax, qword [rbp - 0x40]
mov r8, qword [rax]
mov rdx, r12
test r8, r8
je 0x180009246
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, r8
sar rdx, 1
mov rcx, r9
jmp 0x18000924b
mov r9, qword [rsp + 0x30]
test rcx, rcx
je 0x180009279
mov rcx, r15
cmp rdx, 7
ja 0x180009273
mov qword [r15 + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r15], r12w
jmp 0x180009279
call fcn.18000a1d0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r13
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.1800099a0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180009069
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009064
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800011c0
int3