Function at 0x4245f4
Capabilities:
Set current directory

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x48
mov eax, 0x4a1fb6
call fcn.004646e0
mov esi, dword [ebp + 0x420]
mov edi, dword [ebp + 0x41c]
and dword [esi], 0
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xd], 0
call fcn.00465a70
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.004018b0
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x42466c
mov eax, dword [eax + 8]
jmp 0x42466f
add eax, 8
push eax
lea eax, [ebp - 0x18]
push str.Installing_MSI_engine__s
push eax
mov dword [ebp - 0x18], str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x14], 0x830
call fcn.004115dc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401670
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x54]
push eax
call fcn.004057db
mov ecx, eax
call fcn.0040f5ac
mov dword [ebp - 4], ebx
cmp dword [eax + 0x1c], 8
jb 0x4246be
mov eax, dword [eax + 8]
jmp 0x4246c1
add eax, 8
push eax
push str.2.0.2600.0
call fcn.00441c01
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004016d0
cmp dword [ebp - 0x14], 0
jge 0x4246ff
push edi
lea eax, [ebp + 0x208]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x14], 0x4af064
jmp 0x424744
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0xd], bl
call fcn.004057db
mov ecx, eax
call fcn.004378ca
test eax, eax
push edi
lea eax, [ebp + 0x208]
je 0x424731
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x14], str._quiet__norestart
jmp 0x424744
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x14], str._c:_msiinst__delayrebootq_
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
call fcn.004057db
mov ecx, eax
call fcn.004378ca
test eax, eax
je 0x42476f
mov ecx, dword [ebp - 0x1c]
call fcn.004057db
push eax
push ebx
push dword [ebp - 0x14]
push edi
call fcn.004431f2
jmp 0x42477c
push ebx
lea eax, [ebp + 0x208]
push eax
call fcn.00442e8d
mov edi, eax
xor ecx, ecx
cmp edi, ecx
je 0x424822
cmp edi, 0xbc2
je 0x4247a7
push ecx
push edi
mov dword [0x4db6d0], 0x484
call fcn.00442cc9
pop ecx
pop ecx
mov eax, edi
jmp 0x424824
cmp byte [ebp - 0xd], 0
je 0x424820
push 2
pop eax
mov dword [esi], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], eax
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004014e0
test eax, eax
jne 0x424812
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
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
jmp 0x424822
mov dword [esi], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x414
leave
ret 8