Function at 0x40666b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x1c00
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
call fcn.0040f730
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x406a9f
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
push str.StringFileInfo040904E4_
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
push str.ProductName
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406a9f
movzx edi, di
push str.CompanyName
lea eax, [ebp - 0x214]
lea edi, [ebp + edi - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406771
cmp dword [ebp - 8], ebx
je 0x406771
cmp dword [ebp - 4], ebx
je 0x406771
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40678a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x1000
push eax
call fcn.0040f630
pop ecx
pop ecx
push str.FileDescription
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4067ee
cmp dword [ebp - 8], ebx
je 0x4067ee
cmp dword [ebp - 4], ebx
je 0x4067ee
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406807
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x800
push eax
call fcn.0040f630
pop ecx
pop ecx
push str.ProductVersion
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40686b
cmp dword [ebp - 8], ebx
je 0x40686b
cmp dword [ebp - 4], ebx
je 0x40686b
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406884
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call fcn.0040f630
pop ecx
pop ecx
push str.PrivateBuild
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4068e2
cmp dword [ebp - 8], ebx
je 0x4068e2
cmp dword [ebp - 4], ebx
je 0x4068e2
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4068fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x1400
push eax
call fcn.0040f630
pop ecx
pop ecx
push str.FileVersion
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40695f
cmp dword [ebp - 8], ebx
je 0x40695f
cmp dword [ebp - 4], ebx
je 0x40695f
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406978
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x1800
push eax
call fcn.0040f630
pop ecx
pop ecx
push str.LegalCopyright
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4069dc
cmp dword [ebp - 8], ebx
je 0x4069dc
cmp dword [ebp - 4], ebx
je 0x4069dc
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4069f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xc00
push eax
call fcn.0040f630
pop ecx
pop ecx
push str.LegalTrademarks
lea eax, [ebp - 0x214]
push eax
mov byte [edi], bl
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406a59
cmp dword [ebp - 8], ebx
je 0x406a59
cmp dword [ebp - 4], ebx
je 0x406a59
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x114]
push 0x4a7e7c
push eax
call fcn.0040f630
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x400
push eax
call fcn.0040f630
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
jmp 0x406aa1
xor al, al
pop edi
pop esi
pop ebx
leave
ret