Function at 0x401260
Capabilities:
Get file version info

Disassembly:
mov eax, 0x1b3c
call fcn.00401ad0
mov eax, dword [str._unknown_]
mov ecx, dword [0x40a468]
mov dx, word [0x40a46c]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
push 0x104
lea eax, [esp + 0x248]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1b54]
push eax
push ecx
mov word [esp + 0x3c], dx
call edi
lea ecx, [eax - 1]
mov eax, ecx
test eax, eax
jl 0x4012d1
mov dl, 0x5c
cmp byte [esp + eax + 0x244], dl
je 0x4012d1
sub eax, 1
jns 0x4012c3
cmp ecx, eax
jl 0x4012e5
mov dl, 0x2e
cmp byte [esp + ecx + 0x244], dl
je 0x4012e5
dec ecx
cmp ecx, eax
jge 0x4012d7
mov esi, ecx
sub esi, eax
lea edx, [esi - 1]
push edx
lea eax, [esp + eax + 0x249]
push eax
lea ecx, [esp + 0x148]
push 0x104
push ecx
call fcn.00401a88
mov eax, dword [esp + 0x1b64]
add esp, 0x10
mov byte [esp + esi + 0x13f], 0
test eax, eax
je 0x4013e4
push 0x104
lea edx, [esp + 0x40]
push edx
push eax
call edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40142c
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x40142c
push edi
push esi
push 0
lea edx, [esp + 0x48]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4013d5
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.StringFileInfo040904e4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4013a5
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push str.StringFileInfo040904b0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4013d5
mov eax, dword [esp + 0xc]
cmp eax, 0x13
jbe 0x4013b7
mov eax, 0x13
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x30]
push 0x14
push edx
call fcn.00401a88
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov byte [esp + eax + 0x28], 0
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40142c
mov esi, dword [esp + 0x1b58]
push str.lvrt.dll
push esi
call fcn.00401aad
add esp, 8
test eax, eax
jne 0x401419
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push 0x104
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x40142c
push esi
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00401a6f
add esp, 0xc
push 0x800
lea edi, [esp + 0xb4c]
mov esi, 1
call fcn.004011b0
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageA]
add esp, 4
lea ecx, [esp + 0x140]
mov edx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x7ff
mov dword [esp + 0x28], edx
lea edx, [esp + 0x350]
push edx
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
push 0
mov eax, edi
push eax
push 0x400
mov dword [esp + 0x38], str.2010
call ebp
mov esi, dword [esp + 0x1b4c]
push 0x800
call fcn.004011b0
lea eax, [esi - 3]
add esp, 4
cmp eax, 7
ja case.0x4014af.5
movzx ecx, byte [eax + 0x40156c]
jmp dword [ecx*4 + 0x401560]
mov edx, dword [esp + 0x1b5c]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x348]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x401509
lea edx, [esp + 0x28]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x140]
lea edx, [esp + 0x348]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x401509
lea eax, [esp + 0x348]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
push edx
push 0x7ff
lea eax, [esp + 0x1350]
push eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ecx
push 0
lea ecx, [esp + 0xb5c]
push ecx
push 0x400
call ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x10
push str.LabVIEW
lea edx, [esp + 0x1350]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1b3c
ret