Function at 0x454da0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ce8ef
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov dword [esp + 0x138], 0
push 0x4dfd54
mov ecx, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
call fcn.00402520
mov esi, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], vtable.CIRRegistry.0
mov dword [esp + 0x138], esi
call fcn.00484590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x454e2e
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
push ecx
push ecx
mov byte [esp + 0x144], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NONE
call fcn.00402520
push ecx
mov byte [esp + 0x148], 3
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.InstallerLocation
call fcn.00402520
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
mov byte [esp + 0x150], 4
call fcn.00402520
push 3
mov byte [esp + 0x150], 2
call fcn.00425f80
test eax, eax
mov ebp, dword [esp + 0x10]
je 0x454f46
push str.NONE
push ebp
call fcn.004a30dd
add esp, 8
test eax, eax
setne al
test al, al
je 0x454f46
cmp dword [ebp - 0xc], 0
je 0x454f46
push 0x4e2d74
lea eax, [esp + 0x14]
call fcn.0040d3b0
mov ebp, dword [esp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.00402860
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x4e2d78
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 5
call fcn.00410550
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x454f22
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.004028f0
lea eax, [esi - 0x10]
mov byte [esp + 0x138], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454f46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x455035
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x455035
push 0x104
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x45502e
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00402520
mov byte [esp + 0x138], 6
mov ecx, dword [esp + 0xc]
push 0x5c
push ecx
call fcn.004a4635
add esp, 8
test eax, eax
je 0x455006
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x455006
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.004061a0
push eax
mov ecx, edi
mov byte [esp + 0x13c], 7
call fcn.004028f0
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454ffa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4e2d74
mov eax, edi
call fcn.0040d3b0
mov byte [esp + 0x138], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45502e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x455078
push 0x104
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x455054
sub eax, edx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00402430
push 0x4e2d74
mov eax, edi
call fcn.0040d3b0
lea eax, [ebp - 0x10]
mov byte [esp + 0x138], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45509c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004a3135
add esp, 0x130
ret