Function at 0x4012f0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2340
call fcn.00402040
mov eax, dword [str._unknown_]
mov ecx, dword [0x40b3e0]
mov dx, word [0x40b3e4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
push 0x104
lea eax, [esp + 0x250]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x235c]
push eax
push ecx
mov word [esp + 0x44], dx
xor ebx, ebx
call edi
lea esi, [eax - 1]
mov eax, esi
cmp eax, ebx
jl 0x401364
mov cl, 0x5c
cmp byte [esp + eax + 0x24c], cl
je 0x401364
sub eax, 1
jns 0x401356
cmp esi, eax
jl 0x40137e
mov cl, 0x2e
lea ebx, [ebx]
cmp byte [esp + esi + 0x24c], cl
je 0x40137e
dec esi
cmp esi, eax
jge 0x401370
sub esi, eax
lea edx, [esi - 1]
push edx
lea eax, [esp + eax + 0x251]
push eax
lea ecx, [esp + 0x150]
push 0x104
push ecx
call fcn.00401fd0
mov eax, dword [esp + 0x236c]
add esp, 0x10
mov byte [esp + esi + 0x147], bl
cmp eax, ebx
je 0x401477
push 0x104
lea edx, [esp + 0x48]
push edx
push eax
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4014bf
push 4
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x4014bf
push edi
push esi
push ebx
lea edx, [esp + 0x50]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401468
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.StringFileInfo040904e4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401439
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push str.StringFileInfo040904b0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401468
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jbe 0x40144b
mov eax, 0x13
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x38]
push 0x14
push edx
call fcn.00401fd0
mov eax, dword [esp + 0x28]
add esp, 0x10
mov byte [esp + eax + 0x30], bl
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4014bf
mov esi, dword [esp + 0x2360]
push str.lvrt.dll
push esi
call fcn.00402020
add esp, 8
test eax, eax
jne 0x4014ac
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
push 0x104
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4014bf
push esi
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.00401fb0
add esp, 0xc
mov edi, dword [esp + 0x2354]
cmp edi, 2
je 0x401561
cmp edi, 4
je 0x401561
mov byte [esp + 0x13], bl
mov esi, 1
push 0x800
lea ebx, [esp + 0x1354]
call fcn.00401240
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageA]
add esp, 4
lea ecx, [esp + 0x148]
mov edx, ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
push ecx
push 0x7ff
mov dword [esp + 0x30], edx
lea edx, [esp + 0x1b58]
push edx
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], eax
push 0
mov eax, ebx
push eax
push 0x400
mov dword [esp + 0x40], str.2011
call ebp
push 0x800
mov esi, edi
call fcn.00401240
lea eax, [edi - 3]
add esp, 4
cmp eax, 7
ja case.0x40155a.5
movzx ecx, byte [eax + 0x4017b0]
jmp dword [ecx*4 + 0x4017a4]
mov byte [esp + 0x13], 1
mov esi, 0xb
jmp 0x4014e1
mov edx, dword [esp + 0x2364]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x1b50]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x4015c3
lea edx, [esp + 0x30]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x148]
lea edx, [esp + 0x1b50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x4015c3
lea eax, [esp + 0x1b50]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
push edx
push 0x7ff
lea eax, [esp + 0xb58]
push eax
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ecx
push 0
lea ecx, [esp + 0x1364]
push ecx
push 0x400
call ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp byte [esp + 0x13], 0
je 0x40177f
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x13
push 0x40b37c
lea edx, [esp + 0xb58]
push edx
push 0
call edi
cmp eax, 6
jne 0x401796
push str.http:__www.ni.com_rteFinder_destlvrte
lea eax, [esp + 0x354]
push 0x800
push eax
mov byte [esp + 0x35c], 0
call fcn.00401fb0
push str.version
lea ecx, [esp + 0x360]
push 0x800
push ecx
call fcn.00401f90
push str.11.0
lea edx, [esp + 0x36c]
push 0x800
push edx
call fcn.00401f90
push str.platformWin7_
lea eax, [esp + 0x378]
push 0x800
push eax
call fcn.00401f90
push 0x40b334
lea ecx, [esp + 0x384]
push 0x800
push ecx
call fcn.00401f90
push str.lang
lea edx, [esp + 0x390]
push 0x800
push edx
call fcn.00401f90
add esp, 0x48
call fcn.004011b0
push eax
lea eax, [esp + 0x354]
push 0x800
push eax
call fcn.00401f90
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401716
push str.ShellExecuteA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401716
push 1
push 0
push 0
lea ecx, [esp + 0x35c]
push ecx
push str.open
push 0
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2340
ret
push 0x800
lea ebx, [esp + 0x1354]
mov esi, 0xc
call fcn.00401240
add esp, 4
lea eax, [esp + 0x14]
push eax
push 0x7ff
lea ecx, [esp + 0xb58]
push ecx
push 0
lea edx, [esp + 0x30]
mov dword [esp + 0x24], edx
push 0
mov edx, ebx
push edx
push 0x400
mov dword [esp + 0x3c], str.11.0
call ebp
push 0x10
push 0x40b37c
lea eax, [esp + 0xb58]
push eax
push 0
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2340
ret
push 0x10
push 0x40b37c
lea ecx, [esp + 0xb58]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2340
ret