Function at 0x140049670
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x228
mov qword [rsp + 0x208], 0xfffffffffffffffe
mov rax, qword [0x1401787a0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x200], 0
lea rcx, [rsp + 0x58]
call fcn.140003950
nop
lea rcx, [rsp + 0x48]
call fcn.140003950
nop
lea rdx, [0x140114e17]
mov rcx, qword [rsp + 0x250]
call fcn.140002d80
test eax, eax
jne 0x140049710
mov edx, 0x104
lea rcx, [rsp + 0x58]
call fcn.1400016d0
mov r8d, 0x104
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.1400032b0
jmp 0x140049722
mov rdx, qword [rsp + 0x250]
lea rcx, [rsp + 0x58]
call fcn.140001970
lea rcx, [rsp + 0x40]
call fcn.140003950
nop
lea rcx, [rsp + 0x58]
call fcn.1400018a0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140066e20
test eax, eax
jne 0x1400497df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov r8d, dword [rsp + 0x60]
lea rdx, [0x14011c658]
lea rcx, str._s___return_empty_string__1__LastError_u_kGetShortPathName_fail_n
call fcn.140062f80
mov rdx, qword [rsp + 0x58]
lea rcx, str.__strExePath__s__n
call fcn.140062f80
lea rdx, [0x140114e45]
mov rcx, qword [rsp + 0x248]
call fcn.140002bb0
mov eax, dword [rsp + 0x200]
or eax, 1
mov dword [rsp + 0x200], eax
lea rcx, [rsp + 0x40]
call fcn.140003a70
nop
lea rcx, [rsp + 0x48]
call fcn.140003a70
nop
lea rcx, [rsp + 0x58]
call fcn.140003a70
nop
mov rcx, qword [rsp + 0x250]
call fcn.140003a70
mov rax, qword [rsp + 0x248]
jmp 0x140049c14
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140001970
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.1400018a0
lea rdx, [rsp + 0x38]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jbe 0x140049ba3
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1400c6930
mov edx, dword [rsp + 0x54]
mov dword [rsp + 0x64], edx
mov ecx, dword [rsp + 0x64]
call fcn.140096bcc
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x140049915
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1b0], eax
mov r9d, dword [rsp + 0x1b0]
mov r8, qword [rsp + 0x48]
lea rdx, [0x14011c6e0]
lea rcx, str._s___return___s___2__LastError_u_new_fail_n
call fcn.140062f80
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x248]
call fcn.140001bf0
mov eax, dword [rsp + 0x200]
or eax, 1
mov dword [rsp + 0x200], eax
lea rcx, [rsp + 0x40]
call fcn.140003a70
nop
lea rcx, [rsp + 0x48]
call fcn.140003a70
nop
lea rcx, [rsp + 0x58]
call fcn.140003a70
nop
mov rcx, qword [rsp + 0x250]
call fcn.140003a70
mov rax, qword [rsp + 0x248]
jmp 0x140049c14
lea rcx, [rsp + 0x58]
call fcn.1400018a0
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x38]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
lea rdi, [rsp + 0x70]
lea rsi, str.VarFileInfoTranslation
mov ecx, 0x19
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call sub.VERSION.dll_VerQueryValueA
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400499f7
cmp dword [rsp + 0x50], 0
jbe 0x1400499f7
cmp qword [rsp + 0x30], 0
je 0x1400499f7
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 0x1b4], eax
lea rdi, [rsp + 0x1b8]
lea rsi, str.StringFileInfo_04x_04x_
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x1b4]
shr rax, 0x10
and rax, 0xffff
movzx r9d, ax
mov eax, dword [rsp + 0x1b4]
and rax, 0xffff
movzx r8d, ax
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x140049a8a
mov r8, qword [rsp + 0x48]
lea rdx, [0x14011c778]
lea rcx, [0x14011c7a0]
call fcn.140062f80
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1f0], rax
mov rcx, qword [rsp + 0x1f0]
call fcn.140096bc4
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x248]
call fcn.140001bf0
mov eax, dword [rsp + 0x200]
or eax, 1
mov dword [rsp + 0x200], eax
lea rcx, [rsp + 0x40]
call fcn.140003a70
nop
lea rcx, [rsp + 0x48]
call fcn.140003a70
nop
lea rcx, [rsp + 0x58]
call fcn.140003a70
nop
mov rcx, qword [rsp + 0x250]
call fcn.140003a70
mov rax, qword [rsp + 0x248]
jmp 0x140049c14
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea rdx, [0x140118884]
mov rcx, qword [rsp + 0x90]
call sub.VERSION.dll_VerQueryValueA
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140049b7a
cmp dword [rsp + 0x50], 0
jbe 0x140049b7a
cmp qword [rsp + 0x30], 0
je 0x140049b7a
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
mov word [rsp + 0x1d8], ax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
and rax, 0xffff
mov word [rsp + 0x1e0], ax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
shr rax, 0x10
and rax, 0xffff
mov word [rsp + 0x1e4], ax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
and rax, 0xffff
mov word [rsp + 0x1dc], ax
movzx ecx, word [rsp + 0x1dc]
movzx eax, word [rsp + 0x1e4]
movzx r9d, word [rsp + 0x1e0]
movzx r8d, word [rsp + 0x1d8]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rdx, str._d___d___d___d
lea rcx, [rsp + 0x48]
call fcn.140003170
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1f8], rax
mov rcx, qword [rsp + 0x1f8]
call fcn.140096bc4
mov qword [rsp + 0x90], 0
mov r8, qword [rsp + 0x48]
lea rdx, str.CRP_SETUPApp::kGetFixedFileVersion
lea rcx, str._s___return___s___4__n
call fcn.140062f80
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x248]
call fcn.140001bf0
mov eax, dword [rsp + 0x200]
or eax, 1
mov dword [rsp + 0x200], eax
lea rcx, [rsp + 0x40]
call fcn.140003a70
nop
lea rcx, [rsp + 0x48]
call fcn.140003a70
nop
lea rcx, [rsp + 0x58]
call fcn.140003a70
nop
mov rcx, qword [rsp + 0x250]
call fcn.140003a70
mov rax, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400c6ac0
add rsp, 0x228
pop rdi
pop rsi
ret