Function at 0x41c15c
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x474da4
call fcn.00444d58
sub esp, 0x168
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
push 1
pop edi
cmp ecx, 0x2000
mov dword [eax], edi
je 0x41c1d7
cmp ecx, 0xbc2
je 0x41c1d7
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x41c19e
cmp ecx, 0x642
jne 0x41c1aa
cmp dword [ebp + 0x18], ebx
je 0x41c1aa
mov dword [eax], ebx
jmp 0x41c448
cmp ecx, ebx
je 0x41c448
cmp ecx, 0x1008
je 0x41c448
mov ecx, dword [ebp - 0x18]
mov dword [0x49b6ec], 0x66d
call fcn.00425075
xor eax, eax
jmp 0x41c44a
push esi
lea eax, [ebp + 0x1b]
push edi
push eax
push str.DotNetDelayReboot
lea ecx, [ebp - 0x70]
call fcn.0040175f
lea eax, [ebp - 0x11]
push edi
push eax
xor ebx, ebx
push dword [0x47b6f8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.0040175f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push ebx
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.0040104a
mov ecx, eax
call fcn.0043247c
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x17], al
mov byte [ebp - 4], bl
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401bc2
lea eax, [ebp + 0x1b]
push edi
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040175f
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x41c25e
mov eax, 0x47b578
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1f6
movzx eax, byte [ebp + 0x17]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push str.Redist_return_value___d__indicates_a_reboot_is_required__DotNetDelayReboot_is__x
push eax
call fcn.004084c8
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.00401bc2
call fcn.00441273
test eax, eax
jne 0x41c339
cmp dword [ebp + 8], 0xbc2
jne 0x41c2ac
cmp byte [ebp + 0x17], bl
je 0x41c339
cmp byte [0x498990], bl
jne 0x41c2bc
cmp byte [0x49bca8], bl
je 0x41c32b
lea eax, [ebp + 0xb]
push edi
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040175f
mov eax, str.Reboot_will_be_deferred
mov dword [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x48], 0x47b560
test ecx, ecx
mov dword [ebp - 0x28], 0x47b558
jne 0x41c2ef
mov eax, 0x498d9c
lea ecx, [ebp + 0x17]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00408d40
lea eax, [ebp - 0x70]
push 0x201
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.0046a430
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401bc2
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x41c3c2
cmp byte [0x498990], bl
jne 0x41c349
cmp byte [0x49bca8], bl
je 0x41c3b8
lea eax, [ebp + 0xb]
push edi
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040175f
mov eax, str.System_is_Win9x_or_reboot_is_not_being_suppressed__reboot_will_be_immediate
mov dword [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x48], 0x47b560
test ecx, ecx
mov dword [ebp - 0x28], 0x47b558
jne 0x41c37c
mov eax, 0x498d9c
lea ecx, [ebp + 0x17]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00408d40
lea eax, [ebp - 0x70]
push 0x1fa
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.0046a430
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401bc2
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov dword [eax + 0x38], edi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 7
call fcn.00417ceb
test eax, eax
pop esi
jne 0x41c43a
push 0x40
lea edi, [ebp - 0x173]
pop ecx
mov byte [ebp - 0x174], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 0x10], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
pop edi
cmp dword [ebp - 0x10], ebx
je 0x41c448
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14