Function at 0x424310
Capabilities:
Set current directory

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x84
mov eax, 0x4a1f73
call fcn.004646e0
mov eax, dword [ebp + 0x218]
mov edi, dword [ebp + 0x214]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x21c]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x220]
inc ebx
mov dword [ebp - 0x18], ecx
mov dword [eax], ebx
cmp edi, 0x2000
je 0x4243b8
cmp edi, 0xbc2
je 0x4243b8
cmp edi, 0x800704c7
je 0x42437d
cmp edi, 0x642
jne 0x42438e
cmp dword [ebp + 0x224], 0
je 0x42438e
and dword [eax], 0
jmp 0x4245cd
test edi, edi
je 0x4245cd
cmp edi, 0x1008
je 0x4245cd
mov dword [0x4db6d0], 0x66d
call fcn.0041fc7f
xor eax, eax
jmp 0x4245cf
push ebx
lea eax, [ebp - 0xd]
push eax
push str.DotNetDelayReboot
lea ecx, [ebp - 0x90]
call fcn.004018b0
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0xd]
push eax
push str.Startup
lea ecx, [ebp - 0x5c]
call fcn.004018b0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004057db
mov ecx, eax
call fcn.00439da7
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00401670
movzx eax, byte [ebp - 0xd]
push eax
push edi
lea eax, [ebp - 0x28]
push str.Redist_return_value___d__indicates_a_reboot_is_required__DotNetDelayReboot_is__x
mov esi, str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x1ee
call fcn.004115dc
add esp, 0x10
call fcn.004419b8
test eax, eax
jne 0x4244db
cmp edi, 0xbc2
jne 0x424460
cmp byte [ebp - 0xd], al
je 0x4244db
cmp byte [0x4d745e], 0
jne 0x424472
cmp byte [0x4dc5e4], 0
je 0x4244d0
push ebx
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.004018b0
mov dword [ebp - 4], 4
push ebx
lea eax, [ebp - 0xd]
push eax
push str.Reboot_will_be_deferred
lea ecx, [ebp - 0x90]
call fcn.004018b0
mov byte [ebp - 4], 5
push 0x1f9
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0049b7a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401670
mov eax, dword [ebp - 0x1c]
mov dword [eax], 2
jmp 0x424555
cmp byte [0x4d745e], 0
jne 0x4244ed
cmp byte [0x4dc5e4], 0
je 0x42454b
push ebx
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.004018b0
mov dword [ebp - 4], 2
push ebx
lea eax, [ebp - 0xd]
push eax
push str.System_is_Win9x_or_reboot_is_not_being_suppressed__reboot_will_be_immediate
lea ecx, [ebp - 0x90]
call fcn.004018b0
mov byte [ebp - 4], 3
push 0x1f2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0049b7a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00401670
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401670
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 0x18]
xor esi, esi
mov dword [eax + 0x54], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 6
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004014e0
test eax, eax
jne 0x4245c1
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00465a70
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push str.InstallerLocation
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x104
call fcn.004015b0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401490
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x20c
leave
ret 0x14