Function at 0x1400389a0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa90
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14012aab8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rsi, rcx
lea rbx, [rcx + 0x50]
cmp qword [rbx + 0x18], 8
jb 0x1400389e5
mov rdx, qword [rbx]
jmp 0x1400389e8
mov rdx, rbx
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 r14d, eax
xor r15d, r15d
test eax, eax
jne 0x140038a52
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x280]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x280]
call fcn.140038cc0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
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 0x140038c8e
lea rdi, [rsi + 0x70]
mov rdx, r14
mov rcx, rdi
call fcn.140038f28
nop
mov rax, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x140038a6f
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, rbx
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
nop dword [rax + rax]
test eax, eax
jne 0x140038ab8
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x280]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x280]
call fcn.140038d58
jmp 0x140038a27
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140038b0d
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x280]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x280]
call fcn.140038df0
jmp 0x140038a27
mov eax, dword [rsp + 0x30]
and eax, 0xfffffffc
cmp eax, 4
jae 0x140038b28
call fcn.14003ad38
mov eax, 0x80004005
jmp 0x140038c8e
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x38]
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea r8, str.StringFileInfo_04x_04x_
mov ebx, 0x100
mov edx, ebx
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea rax, [rsp + 0x80]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140038b7c
lea rax, [rsp + 0x80]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x60], rax
sub rbx, rcx
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x58], rax
lea rdx, [0x1400ecd08]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0x88], rax
lea rdx, [0x1400ecd20]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0x90], rax
lea rdx, [0x1400ecd40]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0x98], rax
lea rdx, [0x1400ecd58]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0xa0], rax
lea rdx, [0x1400ecd78]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0xa8], rax
lea rdx, [0x1400ecd98]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0xb0], rax
lea rdx, [0x1400ecdc0]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0xb8], rax
lea rdx, [0x1400ecdd8]
lea rcx, [rsp + 0x40]
call fcn.140038e88
mov qword [rsi + 0xc0], rax
xor eax, eax
jmp 0x140038c8e
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400c9570
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret