Function at 0x4012e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x233c
call fcn.00412f90
mov ax, word [0x43d354]
movq xmm0, qword [0x43d34c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x33c]
push 0x104
push eax
push dword [ebp + 0xc]
movq qword [ebp - 0x30], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0x26], xmm0
mov word [ebp - 0x1e], 0
call edi
lea esi, [eax - 1]
mov ecx, esi
test ecx, ecx
js 0x401344
cmp byte [ebp + ecx - 0x33c], 0x5c
je 0x401344
sub ecx, 1
jns 0x401335
cmp esi, ecx
jl 0x40135f
nop dword [eax + eax]
cmp byte [ebp + esi - 0x33c], 0x2e
je 0x40135f
dec esi
cmp esi, ecx
jge 0x401350
sub esi, ecx
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x33b]
add eax, ecx
push eax
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.004027a0
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov byte [ebp + esi - 0x239], 0
test eax, eax
je 0x401453
push 0x104
lea ecx, [ebp - 0x134]
push ecx
push eax
call edi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x134]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40149c
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x40149c
push esi
push edi
push 0
lea eax, [ebp - 0x134]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401444
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo040904e4ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40141a
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401444
mov eax, dword [ebp + 0x10]
mov ecx, 0x13
cmp eax, ecx
cmova eax, ecx
push eax
push dword [ebp - 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.004027a0
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov byte [ebp + eax - 0x30], 0
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40149c
mov esi, dword [ebp + 0x14]
push str.lvrt.dll
push esi
call fcn.00402750
add esp, 8
test eax, eax
jne 0x401487
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x134]
push eax
push 0x104
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x40149c
push esi
lea eax, [ebp - 0x134]
push 0x104
push eax
call fcn.00402760
add esp, 0xc
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x4014ad
cmp esi, 4
je 0x4014ad
xor bl, bl
jmp 0x4014af
mov bl, 1
push 0x800
lea eax, [ebp - 0x133c]
mov ecx, 1
push eax
test bl, bl
mov eax, 0xb
cmove eax, ecx
push eax
push dword [ebp + 0xc]
call fcn.00401220
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x238]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], str.2021
push eax
push 0x7ff
lea eax, [ebp - 0x233c]
mov dword [ebp - 0xc], 0x43d3b0
push eax
push 0
push 0
lea eax, [ebp - 0x133c]
push eax
push 0x400
call edi
push 0x800
lea eax, [ebp - 0x133c]
push eax
push esi
push dword [ebp + 0xc]
call fcn.00401220
add esi, 0xfffffffd
add esp, 0x10
cmp esi, 7
ja case.0x401545.5
movzx eax, byte [esi + 0x401788]
jmp dword [eax*4 + 0x40177c]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x233c]
mov dword [ebp - 0x14], eax
jmp 0x401592
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x233c]
mov dword [ebp - 0x10], eax
jmp 0x401592
lea eax, [ebp - 0x233c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x7ff
lea eax, [ebp - 0x1b3c]
push eax
push 0
push 0
lea eax, [ebp - 0x133c]
push eax
push 0x400
call edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [ebp - 0x1b3c]
test bl, bl
je 0x401762
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x13
push 0x43d3b4
push eax
push 0
call edi
cmp eax, 6
jne 0x401772
push str.http:__www.ni.com_rteFinder_destlvrte
lea eax, [ebp - 0xb3c]
mov byte [ebp - 0xb3c], 0
push 0x800
push eax
call fcn.00402760
push str.version
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
push str.21.0
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
push str.platformWin7_
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
push 0x43d3b0
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
push str.lang
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
add esp, 0x48
call fcn.004011a0
push eax
lea eax, [ebp - 0xb3c]
push 0x800
push eax
call fcn.00402730
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 [ebp + 0x10], ebx
call esi
test ebx, ebx
je 0x4016fb
test eax, eax
je 0x4016fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoInitializeEx
push eax
call esi
push str.ShellExecuteA
push dword [ebp + 0x10]
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x4016fb
test esi, esi
je 0x4016fb
push 6
push 0
call ebx
push 1
push 0
push 0
lea eax, [ebp - 0xb3c]
push eax
push str.open
push 0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0x133c]
push eax
push 0xc
push dword [ebp + 0xc]
call fcn.00401220
add esp, 0x10
mov dword [ebp - 0x1c], str.21.0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x7ff
lea eax, [ebp - 0x1b3c]
push eax
push 0
push 0
lea eax, [ebp - 0x133c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x10
push 0x43d3b4
lea eax, [ebp - 0x1b3c]
push eax
push 0
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0x43d3b4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret