Function at 0x140001240
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x22c0]
mov eax, 0x23c0
call fcn.140006e40
sub rsp, rax
movzx eax, word [0x14000f710]
mov r10, rdx
movsd xmm0, qword [str._unknown_]
lea rdx, [rbp + 0x1b0]
mov word [rsp + 0x78], ax
mov r14, r8
xor eax, eax
movsd qword [rsp + 0x70], xmm0
mov edi, ecx
mov qword [rsp + 0x7a], rax
mov r8d, 0x104
mov word [rbp - 0x7e], ax
mov rcx, r10
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [rax - 1]
movsxd rdx, ecx
mov rax, rdx
test ecx, ecx
js 0x1400012d2
nop dword [rax + rax]
cmp byte [rbp + rax + 0x1b0], 0x5c
je 0x1400012d2
dec edx
sub rax, 1
jns 0x1400012c0
movsxd rax, ecx
movsxd r8, edx
cmp rax, r8
jl 0x1400012f4
nop dword [rax]
cmp byte [rbp + rax + 0x1b0], 0x2e
je 0x1400012f4
dec ecx
dec rax
cmp rax, r8
jge 0x1400012e0
sub ecx, edx
lea eax, [rdx + 1]
dec ecx
lea r8, [rbp + 0x1b0]
movsxd rbx, ecx
mov edx, 0x104
movsxd rcx, eax
mov r9, rbx
add r8, rcx
lea rcx, [rbp + 0xa0]
call fcn.140002540
mov byte [rbp + rbx + 0xa0], 0
mov r12d, 0x13
test r14, r14
je 0x140001420
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0x2300]
lea rcx, [rbp - 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x14000146f
lea r9d, [r12 - 0xf]
mov r8d, 0x1000
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000146f
mov r9, rax
lea rcx, [rbp - 0x70]
mov r8d, esi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x14000140c
lea r9, [rbp + 0x2300]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, str.StringFileInfo040904e4ProductVersion
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1400013d7
lea r9, [rbp + 0x2300]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, str.StringFileInfo040904b0ProductVersion
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000140c
mov eax, dword [rbp + 0x2300]
lea rcx, [rsp + 0x70]
mov r8, qword [rsp + 0x40]
cmp eax, r12d
mov edx, 0x14
cmova eax, r12d
mov r9d, eax
mov dword [rbp + 0x2300], eax
call fcn.140002540
mov eax, dword [rbp + 0x2300]
mov byte [rsp + rax + 0x70], 0
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000146f
lea rdx, str.lvrt.dll
mov rcx, rsi
call fcn.140002500
test eax, eax
jne 0x14000145e
lea rax, [rsp + 0x40]
mov r9d, 0x104
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x14000146f
mov r8, rsi
lea rcx, [rbp - 0x70]
mov edx, 0x104
call fcn.140002510
lea eax, [rdi - 2]
mov ebx, 0xb
test eax, 0xfffffffd
mov r13d, 1
sete sil
test sil, sil
cmove ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov r15d, 0xfc00
mov r14d, 0x800
and eax, 0x3ff
sub eax, 4
je 0x14000150d
sub eax, 3
je 0x1400014f9
sub eax, 5
je 0x1400014e5
sub eax, 5
je 0x1400014d1
cmp eax, r13d
jne 0x140001531
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18200]
jmp 0x140001543
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18020]
jmp 0x140001543
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18090]
jmp 0x140001543
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18120]
jmp 0x140001543
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and ax, r15w
cmp ax, r14w
jne 0x140001531
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18270]
jmp 0x140001543
lea eax, [rbx - 1]
lea rbx, [0x140000000]
mov r8, qword [rbx + rax*8 + 0x18190]
mov rdx, r14
lea rcx, [rbp + 0xac0]
call fcn.140002510
lea rcx, [rbp + 0xac0]
call fcn.140002530
lea rax, [rbp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0xac0]
lea rax, str.2022
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov ecx, 0x400
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x58], rax
lea rax, [0x14000f770]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x2310], rax
lea rax, [rbp + 0x2310]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1ac0]
mov dword [rsp + 0x28], 0x7ff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
sub eax, 4
je 0x14000162a
sub eax, 3
je 0x14000161d
sub eax, 5
je 0x140001610
sub eax, 5
je 0x140001603
cmp eax, r13d
jne 0x140001647
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18200]
jmp 0x140001652
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18020]
jmp 0x140001652
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18090]
jmp 0x140001652
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18120]
jmp 0x140001652
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and ax, r15w
cmp ax, r14w
jne 0x140001647
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18270]
jmp 0x140001652
lea eax, [rdi - 1]
mov r8, qword [rbx + rax*8 + 0x18190]
mov rdx, r14
lea rcx, [rbp + 0xac0]
call fcn.140002510
lea rcx, [rbp + 0xac0]
call fcn.140002530
add edi, 0xfffffffd
cmp edi, 7
ja case.0x140001682.5
movsxd rax, edi
mov ecx, dword [rbx + rax*4 + 0x19e4]
add rcx, rbx
jmp rcx
movsxd rax, dword [rbp + 0x2320]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1ac0]
mov qword [rsp + 0x58], rax
jmp 0x1400016e0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x1ac0]
mov qword [rsp + 0x60], rax
jmp 0x1400016e0
lea rax, [rbp + 0x1ac0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rbp + 0x2310], rax
lea rdx, [rbp + 0xac0]
lea rax, [rbp + 0x2310]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov ecx, 0x400
lea rax, [rbp + 0x12c0]
mov dword [rsp + 0x28], 0x7ff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
xor ecx, ecx
lea r8, str.LabVIEW
lea rdx, [rbp + 0x12c0]
test sil, sil
je 0x1400019ba
mov r9d, r12d
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1400019c6
lea r8, str.http:__www.ni.com_rteFinder_destlvrte
mov byte [rbp + 0x2c0], 0
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.140002510
lea r8, str.version
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
lea rsi, str.22.3
mov rdx, r14
mov r8, rsi
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
lea r8, str.platformWin7_
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
lea r8, [0x14000f770]
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
lea r8, str.lang
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
sub eax, 4
je 0x14000182b
sub eax, 3
je 0x140001822
sub eax, 5
je 0x140001819
sub eax, 5
je 0x140001810
cmp eax, r13d
jne 0x140001842
lea r8, [0x14000f824]
jmp 0x140001849
lea r8, [0x14000f818]
jmp 0x140001849
lea r8, [0x14000f81c]
jmp 0x140001849
lea r8, [0x14000f820]
jmp 0x140001849
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and ax, r15w
lea r8, [0x14000f828]
cmp ax, r14w
je 0x140001849
lea r8, [0x14000f830]
mov rdx, r14
lea rcx, [rbp + 0x2c0]
call fcn.1400024e0
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.ole32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rbx, rbx
je 0x1400018e0
test rax, rax
je 0x1400018e0
lea rdx, str.CoInitializeEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ShellExecuteA
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rdi, rdi
je 0x1400018e0
test rax, rax
je 0x1400018e0
mov edx, 6
xor ecx, ecx
call rdi
xor r9d, r9d
mov dword [rsp + 0x28], r13d
lea r8, [rbp + 0x2c0]
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call rbx
jmp 0x1400019c6
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
sub eax, 4
je 0x140001928
sub eax, 3
je 0x14000191f
sub eax, 5
je 0x140001916
sub eax, 5
je 0x14000190d
cmp eax, r13d
jne 0x14000193f
mov r8, qword [0x140018258]
jmp 0x140001946
mov r8, qword [0x140018078]
jmp 0x140001946
mov r8, qword [0x1400180e8]
jmp 0x140001946
mov r8, qword [str.Die_Website_konnte_nicht_ge]
jmp 0x140001946
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov r8, qword [0x1400182c8]
and ax, r15w
cmp ax, r14w
je 0x140001946
mov r8, qword [str.Failed_to_open_webpage.__Please_visit_ni.com_updates_and_search_for_version__1_of_the_LabVIEW_Run_Time_Engine.]
mov rdx, r14
lea rcx, [rbp + 0xac0]
call fcn.140002510
lea rcx, [rbp + 0xac0]
call fcn.140002530
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov qword [rbp + 0x2310], rax
lea rdx, [rbp + 0xac0]
lea rax, [rbp + 0x2310]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x12c0]
mov dword [rsp + 0x28], 0x7ff
mov ecx, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, str.LabVIEW
xor ecx, ecx
lea rdx, [rbp + 0x12c0]
mov r9d, InitCommonControls
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rbx, qword [rsp + 0x2408]
add rsp, 0x23c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret