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

Disassembly:
mov eax, 0x465d6c
call fcn.0043540c
sub esp, 0x26c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0x2000
mov dword [eax], 1
je 0x4184a8
cmp ecx, 0xbc2
je 0x4184a8
cmp ecx, 0x800704c7
je 0x41846d
cmp ecx, 0x642
jne 0x41847b
cmp dword [ebp + 0x18], 0
je 0x41847b
and dword [eax], 0
jmp 0x418749
test ecx, ecx
je 0x418749
cmp ecx, 0x1008
je 0x418749
mov ecx, dword [ebp - 0x14]
mov dword [0x48b730], 0x66d
call fcn.004205c0
xor eax, eax
jmp 0x41874c
push ebx
mov eax, str.DotNetDelayReboot
push esi
push edi
mov ecx, eax
mov ebx, 0x46b57c
mov edi, 0x46b574
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x4184cb
mov eax, 0x486618
xor esi, esi
lea ecx, [ebp + 0x1b]
push esi
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004010c6
mov eax, dword [str.Startup]
mov dword [ebp - 4], esi
cmp eax, esi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x50], edi
jne 0x4184f2
mov eax, 0x486618
lea ecx, [ebp - 0x15]
push esi
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004010c6
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call fcn.00401083
mov ecx, eax
call fcn.0042b229
and byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
mov byte [ebp + 0x17], al
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401306
lea eax, [ebp + 0x1b]
push 1
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00401a72
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
test eax, eax
jne 0x41855e
mov eax, 0x46b598
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x1f6
movzx eax, byte [ebp + 0x17]
push eax
lea eax, [ebp - 0x48]
push dword [ebp + 8]
push str.Redist_return_value___d__indicates_a_reboot_is_required__DotNetDelayReboot_is__x
push eax
call fcn.0040866e
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00401306
call fcn.004316cb
test eax, eax
jne 0x418638
cmp dword [ebp + 8], 0xbc2
jne 0x4185ac
cmp byte [ebp + 0x17], al
je 0x418638
cmp byte [0x486230], 0
jne 0x4185be
cmp byte [0x48be48], 0
je 0x418627
lea eax, [ebp + 0xb]
push 1
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a72
mov eax, str.Reboot_will_be_deferred
mov dword [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x4185ea
mov eax, 0x486618
lea ecx, [ebp + 0x17]
push 0
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004010c6
lea eax, [ebp - 0x70]
push 0x201
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.0045ba70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401306
mov eax, dword [ebp + 0xc]
push 1
mov dword [eax], 2
pop eax
jmp 0x4186c0
cmp byte [0x486230], 0
jne 0x41864a
cmp byte [0x48be48], 0
je 0x4186b3
lea eax, [ebp + 0xb]
push 1
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a72
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 - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x418676
mov eax, 0x486618
lea ecx, [ebp + 0x17]
push 0
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004010c6
lea eax, [ebp - 0x70]
push 0x1fa
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.0045ba70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401306
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ecx + 0x54], eax
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 7
call fcn.004139af
test eax, eax
jne 0x418738
mov ecx, 0x81
lea edi, [ebp - 0x276]
mov word [ebp - 0x278], si
mov dword [ebp + 0xc], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push str.InstallerLocation
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x10], esi
pop edi
pop esi
pop ebx
je 0x418749
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x14