Function at 0x405ae0
Capabilities:
Get file version info

Disassembly:
push 0xb8
mov eax, 0x411bdd
call fcn.0041072e
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xbc], eax
mov byte [eax], bl
cmp dword [edi + 0x14], 8
jb 0x405b09
mov eax, dword [edi]
jmp 0x405b0b
mov eax, edi
lea ecx, [ebp - 0xc0]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], ebx
push eax
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], ebx
call fcn.00405a92
mov esi, dword [ebp - 0xb4]
test esi, esi
jne 0x405b47
mov ebx, 0x8007000e
jmp 0x405d66
cmp dword [edi + 0x14], 8
jb 0x405b4f
mov edi, dword [edi]
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xc0]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405d61
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb8]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405d61
mov edi, dword [ebp - 0xc4]
mov edx, ebx
shr edi, 2
mov dword [ebp - 0xb0], edx
test edi, edi
jle 0x405d66
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
movzx eax, word [ecx + edx*4 + 2]
push eax
movzx eax, word [ecx + edx*4]
push eax
push str.StringFileInfo_04x_04xOriginalFilename
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.004059af
add esp, 0x14
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405d61
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x8c]
call fcn.004014c6
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb0]
mov byte [ebp - 4], 1
movzx eax, word [ecx + edx*4 + 2]
push eax
movzx eax, word [ecx + edx*4]
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.004059af
add esp, 0x14
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405d53
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
call fcn.004014c6
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
push str.Bootstrapper.exe
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x405cad
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push 0x414e58
cmovae eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x405d2c
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
push str.setup.exe
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x405cf6
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push str.Microsoft_Office
cmovae eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x405d2c
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.004027ef
push ebx
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.004027ef
mov edx, dword [ebp - 0xb0]
inc edx
mov dword [ebp - 0xb0], edx
cmp edx, edi
jl 0x405ba4
jmp 0x405d66
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xa4]
push ebx
push 1
mov byte [eax], 1
call fcn.004027ef
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.004027ef
jmp 0x405d66
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.004027ef
mov ebx, 0x80004005
test esi, esi
je 0x405d71
push esi
call sub.Mso20Win32Client.dll_Ordinal_214
pop ecx
mov eax, ebx
call fcn.004106e0
ret 8