Function at 0x40f091
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x944
mov eax, 0x4b81eb
call fcn.00495a70
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [ebp - 0x938], eax
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x940]
push eax
push dword [0x4fc3ec]
xor esi, esi
mov dword [ebp - 0x94c], esi
mov dword [ebp - 0x940], esi
call fcn.004512f1
add esp, 0x10
test eax, eax
js 0x40f379
mov eax, dword [ebp - 0x940]
dec eax
mov dword [ebp - 0x934], eax
cmp eax, esi
jl 0x40f379
xor ebx, ebx
inc ebx
xor eax, eax
push 0x206
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push esi
push eax
call fcn.00495b20
push dword [ebp + 0xc]
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [ebp - 0x934]
push dword [0x4fc3ec]
call fcn.004513c8
add esp, 0x20
cmp eax, esi
jl 0x40f36d
cmp word [ebp - 0x628], si
je 0x40f36d
push dword [0x4fc3ec]
lea ecx, [ebp - 0x868]
call fcn.004025ee
mov edi, 0x4c1660
push edi
mov dword [ebp - 4], esi
call fcn.00495461
pop ecx
push eax
push edi
lea ecx, [ebp - 0x868]
call fcn.0040136b
lea eax, [ebp - 0x628]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x868]
call fcn.0040136b
push edi
call fcn.00495461
pop ecx
push eax
push edi
lea ecx, [ebp - 0x868]
call fcn.0040136b
xor eax, eax
push 0x206
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push esi
push eax
call fcn.00495b20
push str.DisplayName
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.0040ad53
add esp, 0x18
cmp dword [ebp - 0x870], 8
mov eax, dword [ebp - 0x884]
mov byte [ebp - 4], bl
jae 0x40f1f8
lea eax, [ebp - 0x884]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x830]
push 0x104
push ecx
push eax
call fcn.00450a65
add esp, 0x10
cmp eax, esi
jl 0x40f34f
cmp word [ebp - 0x830], si
je 0x40f34f
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x8bc]
call fcn.004025ee
mov edi, str.Microsoft_Office
push edi
mov byte [ebp - 4], 2
call fcn.00495461
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x8bc]
call fcn.00402357
or edi, 0xffffffff
cmp eax, edi
jne 0x40f27e
push esi
push ebx
lea ecx, [ebp - 0x8bc]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x884]
call fcn.00401129
mov dword [ebp - 4], edi
jmp 0x40f360
push str.VersionMajor
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x8a0]
push eax
mov dword [ebp - 0x93c], esi
call fcn.0040ad53
add esp, 0xc
cmp dword [ebp - 0x88c], 8
mov eax, dword [ebp - 0x8a0]
mov byte [ebp - 4], 3
jae 0x40f2b8
lea eax, [ebp - 0x8a0]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x93c]
push ecx
push eax
call fcn.00450caf
add esp, 0xc
cmp eax, esi
jl 0x40f2e8
mov eax, dword [ebp - 0x93c]
cmp eax, esi
je 0x40f2e8
sub eax, 0xb
je 0x40f306
dec eax
je 0x40f302
dec eax
dec eax
je 0x40f2fe
dec eax
je 0x40f2fa
push esi
push ebx
lea ecx, [ebp - 0x8a0]
call fcn.00401129
jmp 0x40f25c
push 7
jmp 0x40f308
push 5
jmp 0x40f308
push 4
jmp 0x40f308
push 3
pop edi
lea eax, [ebp - 0x930]
push eax
mov dword [ebp - 0x930], esi
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
push eax
push edi
push 2
push 0x4c4284
call dword [sym.imp.OLEAUT32.dll_LHashValOfNameSys]
mov edi, eax
cmp dword [ebp - 0x930], esi
jne 0x40f37f
push esi
push ebx
lea ecx, [ebp - 0x8a0]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x8bc]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x884]
call fcn.00401129
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp - 0x868]
call fcn.00401129
dec dword [ebp - 0x934]
jns 0x40f0f6
call fcn.00495af3
ret
push dword [ebp - 0x930]
lea ecx, [ebp - 0x84c]
call fcn.004025ee
push dword [ebp - 0x930]
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, esi
jge 0x40f3b3
push esi
push ebx
lea ecx, [ebp - 0x84c]
call fcn.00401129
jmp 0x40f335
mov ecx, dword [ebp - 0x84c]
push 8
pop edi
cmp dword [ebp - 0x838], edi
jb 0x40f3cc
mov dword [ebp - 0x944], ecx
jmp 0x40f3d8
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x944], eax
mov eax, ecx
cmp dword [ebp - 0x838], edi
jae 0x40f3e8
lea eax, [ebp - 0x84c]
mov edx, dword [ebp - 0x83c]
lea eax, [eax + edx*2]
cmp dword [ebp - 0x838], edi
jae 0x40f3ff
lea ecx, [ebp - 0x84c]
push 0x499d4b
push dword [ebp - 0x944]
push eax
push ecx
lea eax, [ebp - 0x950]
push eax
call fcn.00408fa8
mov eax, dword [ebp - 0x84c]
add esp, 0x14
cmp dword [ebp - 0x838], edi
jae 0x40f42f
lea eax, [ebp - 0x84c]
push str.mso.dll
push eax
call fcn.00497c22
pop ecx
pop ecx
test eax, eax
je 0x40f3a4
mov eax, dword [ebp - 0x84c]
cmp dword [ebp - 0x838], edi
jae 0x40f458
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f3a4
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.00495b20
push str.DisplayVersion
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x8d8]
push eax
call fcn.0040ad53
add esp, 0x18
mov eax, dword [ebp - 0x8d8]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x8c4], edi
jae 0x40f4b6
lea eax, [ebp - 0x8d8]
push dword [ebp + 0xc]
mov edi, 0x104
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.00450a65
add esp, 0x10
cmp eax, esi
jl 0x40f5d5
cmp word [ebp - 0x218], si
je 0x40f5d5
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push esi
push eax
call fcn.00495b20
push str.InstallDate
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x8f4]
push eax
call fcn.0040ad53
add esp, 0x18
cmp dword [ebp - 0x8e0], 8
mov eax, dword [ebp - 0x8f4]
mov byte [ebp - 4], 6
jae 0x40f533
lea eax, [ebp - 0x8f4]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x420]
push edi
push ecx
push eax
call fcn.00450a65
add esp, 0x10
cmp eax, esi
jl 0x40f5c8
cmp word [ebp - 0x420], si
je 0x40f5c8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x910]
call fcn.004025ee
mov edi, dword [ebp - 0x938]
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x948]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.004094ad
push esi
push ebx
lea ecx, [ebp - 0x910]
mov byte [ebp - 4], 6
call fcn.00401129
mov ecx, dword [ebp - 0x948]
cmp ecx, dword [edi + 4]
je 0x40f5e7
lea eax, [ebp - 0x218]
push eax
lea edi, [ecx + 0x28]
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x10]
mov ecx, edi
push esi
call fcn.00408851
test eax, eax
jle 0x40f5e7
push esi
push ebx
lea ecx, [ebp - 0x8f4]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x8d8]
call fcn.00401129
jmp 0x40f3a4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x92c]
call fcn.004025ee
mov ecx, dword [ebp - 0x938]
lea eax, [ebp - 0x92c]
push eax
mov byte [ebp - 4], 8
call fcn.0040e3d7
mov edi, eax
lea eax, [ebp - 0x420]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.00402570
push esi
push ebx
lea ecx, [ebp - 0x92c]
call fcn.00401129
jmp 0x40f5c8