Function at 0x4040b0
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x134
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x134], eax
push 0x2c
mov eax, 0x4933d7
call fcn.00470906
mov esi, dword [ebp + 0x140]
mov edi, dword [ebp + 0x144]
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.0044e280
push 4
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0044e9d0
push str..msi
push eax
mov byte [ebp - 4], 1
call fcn.00401283
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], bl
call fcn.0044e260
cmp byte [ebp - 0x11], bl
je 0x4041cf
push ebx
push 2
mov dword [ebp - 0x24], 0x32
mov dword [ebp - 0x10], ebx
call sub.msi.dll_MsiSetPropertyW
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.msi.dll_MsiPreviewBillboardA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x100]
push eax
push 0x4a0b8c
push dword [ebp - 0x10]
call sub.msi.dll_MsiGetSourcePathA
push ebx
push dword [ebp - 0x18]
call sub.msi.dll_MsiSetPropertyW
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push ecx
push ecx
lea eax, [ebp + 0x100]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0044e280
call fcn.00401c5d
pop ecx
pop ecx
mov esi, eax
cmp edi, ebx
je 0x40419e
lea eax, [ebp + 0x100]
push eax
push edi
call fcn.00470ce0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0044e260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x134]
xor ecx, ebp
call fcn.00470483
add ebp, 0x138
leave
ret
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x4042c0
push edi
call fcn.0046d27a
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4042c0
push eax
push edi
push dword [ebp - 0x30]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jle 0x4042b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4042b7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4042b7
push 0xff
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp], bl
call fcn.00470280
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0047176b
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4042b7
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
call fcn.0044e280
call fcn.00401c5d
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], ebx
je 0x4042b7
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00470a10
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0047037a
pop ecx
mov esi, dword [ebp - 0x24]
jmp 0x40419e