Function at 0x14003cd38
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0xa70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14012bab8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rdi, rcx
lea rbx, [rcx + 0x50]
cmp qword [rbx + 0x18], 8
jb 0x14003cd82
mov rdx, qword [rbx]
jmp 0x14003cd85
mov rdx, rbx
xor r8d, r8d
lea r15d, [r8 + 2]
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov r14d, eax
xor r12d, r12d
test eax, eax
jne 0x14003cde6
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d1d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x14003d1a2
lea rsi, [rdi + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.14003d5cc
nop
mov rax, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14003ce03
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, rbx
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x14003ce45
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d2d8
jmp 0x14003cdc1
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
xor edx, edx
test eax, eax
jne 0x14003ce94
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d3d8
jmp 0x14003cdc1
mov eax, dword [rsp + 0x40]
and eax, 0xfffffffc
cmp eax, 4
jae 0x14003ceca
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x260]
call fcn.14003d4d8
mov eax, 0x80004005
jmp 0x14003d1a2
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x48]
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea r8, str.StringFileInfo_04x_04x_
mov r14d, 0x100
mov edx, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_swprintf_s]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14003cf0f
lea r15, [rsp + 0x60]
lea r15, [r15 + rax*2]
sub r14, rax
lea r8, [0x1400ed868]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
lea rbx, str.unknown
test eax, eax
mov rax, rbx
je 0x14003cf73
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x88], rax
lea r8, [0x1400ed880]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003cfc1
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x90], rax
lea r8, [0x1400ed8a0]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003d00f
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0x98], rax
lea r8, [0x1400ed8b8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003d05d
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa0], rax
lea r8, [0x1400ed8d8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003d0ab
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xa8], rax
lea r8, [0x1400ed8f8]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003d0f9
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb0], rax
lea r8, [0x1400ed920]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
mov rax, rbx
je 0x14003d147
cmp dword [rsp + 0x30], r12d
cmovne rax, qword [rsp + 0x38]
mov qword [rdi + 0xb8], rax
lea r8, [0x1400ed938]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x14003d192
cmp dword [rsp + 0x30], r12d
cmovne rbx, qword [rsp + 0x38]
mov qword [rdi + 0xc0], rbx
xor eax, eax
jmp 0x14003d1a2
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.1400cb420
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret