Function at 0x1400ce428
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x28], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400ce485
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]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x1400ce518
mov r8, rdi
lea rdx, str.Failed_getting_file_version___GetFileVersionInfoSize
lea rcx, [rbp + 0x70]
call fcn.140077558
mov rsi, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400ce4cf
movzx edi, ax
or edi, 0x80070000
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14008c350
mov r9, rsi
mov r8d, edi
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.1400ce788
lea rcx, [rbp + 0x50]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x70]
call fcn.14007a7c0
lea rdx, [0x1403ab7c0]
mov rcx, rbx
call fcn.14009f058
jmp 0x1400ce74b
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140091bc0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400ce532
mov rcx, qword [rdi]
mov r9, qword [rsp + 0x30]
mov r8d, esi
xor edx, edx
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x1400ce611
mov r8, rdi
lea rdx, str.Failed_getting_file_version___GetFileVersionInfo
lea rcx, [rbp + 0x70]
call fcn.140077558
mov rsi, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400ce581
movzx edi, ax
or edi, 0x80070000
lea rdx, str.fileVersion
lea rcx, [rbp + 0x50]
call fcn.14008c350
mov r9, rsi
mov r8d, edi
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.1400ce788
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x1400ce5be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
call fcn.14007e6f0
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r15w
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x1400ce5ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
call fcn.14007e6f0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], SafeArrayLock
mov byte [rbx], r15b
lea rdx, [0x1403ab7c0]
mov rcx, rbx
call fcn.14009d350
jmp 0x1400ce74b
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [0x1403a9ce8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400ce69d
mov r8, rdi
lea rdx, str.Failed_getting_file_version___VerQueryValue
lea rcx, [rbp + 0x50]
call fcn.140077558
mov rsi, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400ce668
movzx edi, ax
or edi, 0x80070000
lea rdx, str.fileVersion
lea rcx, [rbp + 0x70]
call fcn.14008c350
mov r9, rsi
mov r8d, edi
lea rdx, [rbp + 0x70]
mov rcx, r14
call fcn.1400ce788
lea rcx, [rbp + 0x70]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x50]
jmp 0x1400ce4ff
lea rcx, [rsp + 0x50]
call fcn.1400b4dc4
nop
mov rax, qword [rsp + 0x20]
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]
nop dword [rax + rax]
mov rcx, rax
lea rdi, [0x1403aacac]
mov rdx, rdi
call fcn.1400b4914
mov rcx, qword [rsp + 0x20]
movzx edx, word [rcx + 8]
mov rcx, rax
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]
nop dword [rax + rax]
mov rcx, rax
mov rdx, rdi
call fcn.1400b4914
mov rcx, qword [rsp + 0x20]
movzx edx, word [rcx + 0xe]
mov rcx, rax
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]
nop dword [rax + rax]
mov rcx, rax
mov rdx, rdi
call fcn.1400b4914
mov rcx, qword [rsp + 0x20]
movzx edx, word [rcx + 0xc]
mov rcx, rax
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]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400b4ce4
nop
lea rcx, [rsp + 0x50]
call fcn.14010fe3c
nop
lea rcx, [rsp + 0x30]
call fcn.14007a750
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret