Function at 0x410568
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x134
lea ebp, [esp - 4]
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp + 0x134], eax
push 0x2c
mov eax, 0x4bca31
call fcn.00494508
mov esi, dword [ebp + 0x140]
mov edi, dword [ebp + 0x144]
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.00472760
push 4
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00472ed0
push str..msi
push eax
mov byte [ebp - 4], 1
call fcn.0040d57d
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], bl
call fcn.00472740
cmp byte [ebp - 0x11], bl
je 0x410687
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 0x4cdb20
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.00472760
call fcn.0040e14e
pop ecx
pop ecx
mov esi, eax
cmp edi, ebx
je 0x410656
lea eax, [ebp + 0x100]
push eax
push edi
call fcn.00494970
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00472740
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.004944f9
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 0x410778
push edi
call fcn.00491462
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x410778
push eax
push edi
push dword [ebp - 0x30]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jle 0x41076f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41076f
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 0x41076f
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.00493f80
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.0049543b
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 0x41076f
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
call fcn.00472760
call fcn.0040e14e
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], ebx
je 0x41076f
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00494620
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0049407a
pop ecx
mov esi, dword [ebp - 0x24]
jmp 0x410656