Function at 0x405d0c
Capabilities:
Get file version info

Disassembly:
push 0xb8
mov eax, 0x4115e9
call fcn.0040e1f9
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 0x405d35
mov eax, dword [edi]
jmp 0x405d37
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.00405cde
mov esi, dword [ebp - 0xb4]
test esi, esi
jne 0x405d73
mov ebx, 0x8007000e
jmp 0x405f92
cmp dword [edi + 0x14], 8
jb 0x405d7b
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 0x405f8d
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 0x405f8d
mov edi, dword [ebp - 0xc4]
mov edx, ebx
shr edi, 2
mov dword [ebp - 0xb0], edx
test edi, edi
jle 0x405f92
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.00405bfa
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 0x405f8d
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x8c]
call fcn.00401522
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.00405bfa
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 0x405f7f
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
call fcn.00401522
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 0x405ed9
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push 0x414ea8
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 0x405f58
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 0x405f22
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push 0x414ee0
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 0x405f58
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.00402942
push ebx
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00402942
mov edx, dword [ebp - 0xb0]
inc edx
mov dword [ebp - 0xb0], edx
cmp edx, edi
jl 0x405dd0
jmp 0x405f92
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xa4]
push ebx
push 1
mov byte [eax], 1
call fcn.00402942
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.00402942
jmp 0x405f92
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.00402942
mov ebx, 0x80004005
test esi, esi
je 0x405f9d
push esi
call sub.Mso20Win32Client.dll_Ordinal_1068
pop ecx
mov eax, ebx
call fcn.0040e1ab
ret 8