Function at 0x401300
Capabilities:
Get file version info

Disassembly:
mov eax, 0x233c
call fcn.004062b0
mov ax, word [0x40f448]
movq xmm0, qword [str._unknown_]
push ebx
push ebp
mov ebp, dword [esp + 0x234c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov word [esp + 0x34], ax
lea eax, [esp + 0x248]
push 0x104
movq qword [esp + 0x30], xmm0
xorps xmm0, xmm0
push eax
push ebp
movq qword [esp + 0x42], xmm0
mov word [esp + 0x4a], 0
call edi
lea esi, [eax - 1]
mov ecx, esi
test ecx, ecx
js 0x40136f
nop dword [eax]
cmp byte [esp + ecx + 0x248], 0x5c
je 0x40136f
sub ecx, 1
jns 0x401360
cmp esi, ecx
jl 0x401382
cmp byte [esp + esi + 0x248], 0x2e
je 0x401382
dec esi
cmp esi, ecx
jge 0x401373
sub esi, ecx
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x24d]
add eax, ecx
push eax
lea eax, [esp + 0x14c]
push 0x104
push eax
call fcn.004021c0
mov eax, dword [esp + 0x2368]
add esp, 0x10
mov byte [esp + esi + 0x143], 0
test eax, eax
je 0x401480
push 0x104
lea ecx, [esp + 0x44]
push ecx
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4014ca
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4014ca
push esi
push edi
push 0
lea eax, [esp + 0x4c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401471
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push str.StringFileInfo040904e4ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401442
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401471
mov eax, dword [esp + 0x10]
mov ecx, 0x13
cmp eax, ecx
cmova eax, ecx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push 0x14
push eax
call fcn.004021c0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov byte [esp + eax + 0x2c], 0
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4014ca
mov esi, dword [esp + 0x235c]
push str.lvrt.dll
push esi
call fcn.00402170
add esp, 8
test eax, eax
jne 0x4014b7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
push 0x104
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4014ca
push esi
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.00402180
add esp, 0xc
mov esi, dword [esp + 0x2350]
cmp esi, 2
je 0x4014df
cmp esi, 4
je 0x4014df
xor bl, bl
jmp 0x4014e1
mov bl, 1
push 0x800
lea eax, [esp + 0xb50]
mov ecx, 1
push eax
test bl, bl
mov eax, 0xb
cmove eax, ecx
push eax
push ebp
call fcn.00401240
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x154]
add esp, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], str.2018
push eax
push 0x7ff
lea eax, [esp + 0x1b54]
push eax
push 0
push 0
lea eax, [esp + 0xb60]
push eax
push 0x400
call ebp
push 0x800
lea eax, [esp + 0xb50]
push eax
push esi
push dword [esp + 0x2360]
call fcn.00401240
add esi, 0xfffffffd
add esp, 0x10
cmp esi, 7
ja case.0x40157d.5
movzx eax, byte [esi + 0x4017f4]
jmp dword [eax*4 + 0x4017e8]
mov eax, dword [esp + 0x2360]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1b4c]
mov dword [esp + 0x24], eax
jmp 0x4015d7
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x144]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1b4c]
mov dword [esp + 0x28], eax
jmp 0x4015d7
lea eax, [esp + 0x1b4c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x7ff
lea eax, [esp + 0x1354]
push eax
push 0
push 0
lea eax, [esp + 0xb60]
push eax
push 0x400
call ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [esp + 0x134c]
test bl, bl
je 0x4017c8
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x13
push 0x40f4a4
push eax
push 0
call edi
cmp eax, 6
jne 0x4017d8
push str.http:__www.ni.com_rteFinder_destlvrte
lea eax, [esp + 0x350]
mov byte [esp + 0x350], 0
push 0x800
push eax
call fcn.00402180
push str.version
lea eax, [esp + 0x35c]
push 0x800
push eax
call fcn.00402150
push str.18.0
lea eax, [esp + 0x368]
push 0x800
push eax
call fcn.00402150
push str.platformWin7_
lea eax, [esp + 0x374]
push 0x800
push eax
call fcn.00402150
push 0x40f4f0
lea eax, [esp + 0x380]
push 0x800
push eax
call fcn.00402150
push str.lang
lea eax, [esp + 0x38c]
push 0x800
push eax
call fcn.00402150
add esp, 0x48
call fcn.004011c0
push eax
lea eax, [esp + 0x350]
push 0x800
push eax
call fcn.00402150
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push str.shell32.dll
call esi
mov ebx, eax
push str.ole32.dll
mov dword [esp + 0x14], ebx
call esi
test ebx, ebx
je 0x401755
test eax, eax
je 0x401755
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoInitializeEx
push eax
call esi
push str.ShellExecuteA
push dword [esp + 0x14]
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x401755
test esi, esi
je 0x401755
push 6
push 0
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x358]
push eax
push str.open
push 0
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x233c
ret
push 0x800
lea eax, [esp + 0xb50]
push eax
push 0xc
push dword [esp + 0x2360]
call fcn.00401240
add esp, 0x10
mov dword [esp + 0x1c], str.18.0
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x7ff
lea eax, [esp + 0x1354]
push eax
push 0
push 0
lea eax, [esp + 0xb60]
push eax
push 0x400
call ebp
push 0x10
push 0x40f4a4
lea eax, [esp + 0x1354]
push eax
push 0
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x233c
ret
push 0x10
push 0x40f4a4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x233c
ret