Function at 0x410d7f
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x134
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x134], eax
push 0x2c
mov eax, 0x4ba9df
call fcn.00492516
mov esi, dword [ebp + 0x140]
mov edi, dword [ebp + 0x144]
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.00470680
push 4
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00470df0
push str..msi
push eax
mov byte [ebp - 4], 1
call fcn.0040d567
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], bl
call fcn.00470660
cmp byte [ebp - 0x11], bl
je 0x410e9e
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 0x4cfc1c
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.00470680
call fcn.0040e137
pop ecx
pop ecx
mov esi, eax
cmp edi, ebx
je 0x410e6d
lea eax, [ebp + 0x100]
push eax
push edi
call fcn.00492970
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00470660
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.00492093
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 0x410f8f
push edi
call fcn.0048f372
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x410f8f
push eax
push edi
push dword [ebp - 0x30]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jle 0x410f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410f86
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 0x410f86
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.00491e90
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.0049343b
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 0x410f86
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
call fcn.00470680
call fcn.0040e137
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], ebx
je 0x410f86
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00492620
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00491f8a
pop ecx
mov esi, dword [ebp - 0x24]
jmp 0x410e6d