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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524e53
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall]
lea edx, [ebp - 0x948]
mov dword [ebp - 0x940], eax
push edx
lea eax, [ebp - 0x934]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 0x948], ebx
mov dword [ebp - 0x934], ebx
call fcn.0041eb50
add esp, 0x10
test eax, eax
js 0x414a97
mov esi, dword [ebp - 0x934]
dec esi
mov dword [ebp - 0x93c], esi
cmp esi, ebx
jl 0x414a97
push 0x206
lea eax, [ebp - 0x626]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x628], dx
call fcn.004ba010
mov ecx, dword [ebp + 0xc]
mov eax, dword [str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall]
push ecx
push 0x104
lea edx, [ebp - 0x628]
push edx
push esi
push eax
call fcn.0041eca0
add esp, 0x20
cmp eax, ebx
jl 0x414a84
cmp word [ebp - 0x628], bx
je 0x414a84
mov edx, dword [str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall]
mov edi, 7
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], ebx
mov word [ebp - 0x84c], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414547
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x84c]
call fcn.00402460
push 1
push 0x539ff0
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], ebx
call fcn.00402340
lea eax, [ebp - 0x628]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414581
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x628]
push edx
lea ecx, [ebp - 0x84c]
call fcn.00402340
push 1
push 0x539ff0
lea ecx, [ebp - 0x84c]
call fcn.00402340
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.004ba010
push str.DisplayName
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x868]
push eax
call fcn.0040d560
add esp, 0x18
mov eax, dword [ebp - 0x868]
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x854], esi
jae 0x414608
lea eax, [ebp - 0x868]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
call fcn.0041dcb0
add esp, 0x10
cmp eax, ebx
jl 0x414a3a
cmp word [ebp - 0x420], bx
je 0x414a3a
xor eax, eax
mov word [ebp - 0x8a0], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x88c], edi
mov dword [ebp - 0x890], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414654
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x8a0]
call fcn.00402460
push 0x10
push ebx
push str.Microsoft_Office
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 2
call fcn.00408330
or edi, 0xffffffff
cmp eax, edi
jne 0x4146bd
lea ecx, [ebp - 0x8a0]
call fcn.0051c7a0
lea ecx, [ebp - 0x868]
call fcn.0051c7a0
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], edi
call fcn.0051c7a0
jmp 0x414a84
push str.VersionMajor
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x8bc]
push eax
mov dword [ebp - 0x938], ebx
call fcn.0040d560
add esp, 0xc
mov eax, dword [ebp - 0x8bc]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x8a8], esi
jae 0x4146f6
lea eax, [ebp - 0x8bc]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x938]
push edx
push eax
call fcn.0041e0c0
add esp, 0xc
cmp eax, ebx
jl case.0x414720.13
mov eax, dword [ebp - 0x938]
cmp eax, ebx
je case.0x414720.13
add eax, 0xfffffff5
cmp eax, 4
ja case.0x414720.13
jmp dword [eax*4 + 0x414ab4]
mov esi, 7
jmp 0x414741
mov esi, 5
jmp 0x414741
mov esi, 4
jmp 0x414741
mov esi, 3
lea eax, [ebp - 0x930]
push eax
mov dword [ebp - 0x930], ebx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
push eax
push esi
push 2
push 0x53d13c
call dword [sym.imp.OLEAUT32.dll_LHashValOfNameSys]
mov esi, eax
mov eax, dword [ebp - 0x930]
cmp eax, ebx
jne 0x41477f
lea ecx, [ebp - 0x8bc]
call fcn.0051c7a0
jmp 0x414694
push eax
lea ecx, [ebp - 0x884]
call fcn.00402580
mov ecx, dword [ebp - 0x930]
push ecx
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jge 0x4147bb
lea ecx, [ebp - 0x884]
call fcn.0051c7a0
lea ecx, [ebp - 0x8bc]
call fcn.0051c7a0
jmp 0x414694
mov eax, dword [ebp - 0x870]
mov esi, dword [ebp - 0x884]
mov edi, esi
cmp eax, 8
jae 0x4147d6
lea edi, [ebp - 0x884]
mov esi, edi
lea edx, [ebp - 0x94c]
push edx
lea ecx, [ebp - 0x884]
call fcn.00408300
mov eax, dword [eax]
push 0x4bb4d3
push edi
push eax
lea ecx, [ebp - 0x950]
push esi
push ecx
call fcn.0040b5c0
mov eax, dword [ebp - 0x884]
mov edi, 8
add esp, 0x14
cmp dword [ebp - 0x870], edi
jae 0x41481a
lea eax, [ebp - 0x884]
push str.mso.dll
push eax
call fcn.004ba8ed
add esp, 8
test eax, eax
je 0x4149b5
mov eax, dword [ebp - 0x884]
cmp dword [ebp - 0x870], edi
jae 0x414844
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4149b5
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004ba010
push str.DisplayVersion
lea ecx, [ebp - 0x84c]
push ecx
lea edx, [ebp - 0x8d8]
push edx
call fcn.0040d560
add esp, 0x18
mov eax, dword [ebp - 0x8d8]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x8c4], edi
jae 0x4148a2
lea eax, [ebp - 0x8d8]
mov esi, dword [ebp + 0xc]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.0041dcb0
add esp, 0x10
cmp eax, ebx
jl 0x4149aa
cmp word [ebp - 0x218], bx
je 0x4149aa
push 0x206
lea eax, [ebp - 0x82e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x830], dx
call fcn.004ba010
push str.InstallDate
lea ecx, [ebp - 0x84c]
push ecx
lea edx, [ebp - 0x8f4]
push edx
call fcn.0040d560
add esp, 0x18
mov eax, dword [ebp - 0x8f4]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8e0], edi
jae 0x41491e
lea eax, [ebp - 0x8f4]
push esi
push 0x104
lea ecx, [ebp - 0x830]
push ecx
push eax
call fcn.0041dcb0
add esp, 0x10
cmp eax, ebx
jl 0x41499f
cmp word [ebp - 0x830], bx
je 0x41499f
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x910]
call fcn.00402580
mov esi, dword [ebp - 0x940]
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x944]
push ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004086d0
lea ecx, [ebp - 0x910]
mov byte [ebp - 4], 6
call fcn.0051c7a0
mov ecx, dword [ebp - 0x944]
cmp ecx, dword [esi + 4]
je 0x4149f8
lea edx, [ebp - 0x218]
push edx
add ecx, 0x28
call fcn.00401790
test eax, eax
jle 0x4149f8
lea ecx, [ebp - 0x8f4]
call fcn.0051c7a0
lea ecx, [ebp - 0x8d8]
call fcn.0051c7a0
lea ecx, [ebp - 0x884]
call fcn.0051c7a0
lea ecx, [ebp - 0x8bc]
call fcn.0051c7a0
lea ecx, [ebp - 0x8a0]
call fcn.0051c7a0
lea ecx, [ebp - 0x868]
call fcn.0051c7a0
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], 0xffffffff
call fcn.0051c7a0
jmp 0x414a84
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x92c]
call fcn.00402580
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x92c]
push edx
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00412ca0
mov ecx, eax
call fcn.004025d0
lea ecx, [ebp - 0x92c]
call fcn.0051c7a0
jmp 0x41499f
cmp dword [ebp - 0x854], esi
jb 0x414a51
mov eax, dword [ebp - 0x868]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x858], ebx
mov word [ebp - 0x868], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x838], esi
jb 0x414a84
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004b9008
add esp, 4
mov esi, dword [ebp - 0x93c]
dec esi
mov dword [ebp - 0x93c], esi
jns 0x4144d3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret