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

Disassembly:
mov eax, 0x4777b0
call fcn.004461a8
sub esp, 0x474
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
mov dword [eax], ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x276]
mov word [ebp - 0x278], bx
mov byte [ebp - 0xd], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 0x47e5a0
cmp eax, ebx
mov dword [ebp - 0x28], 0x47e598
jne 0x421757
mov eax, 0x49cc4c
lea ecx, [ebp - 0x15]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00408d43
mov edi, dword [ebp - 0x40]
mov dword [ebp - 4], ebx
cmp edi, ebx
mov esi, 0x47e5b8
jne 0x421776
mov edi, esi
lea eax, [ebp - 0x16]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x70]
call fcn.00401764
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x421796
mov eax, esi
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
push str.Installing_MSI_engine__s
push eax
mov dword [ebp - 0x1c], 0x7e5
call fcn.00408437
add esp, 0xc
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401bc7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401bc7
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push 4
push eax
call fcn.0040104a
mov ecx, eax
call fcn.0040832b
mov eax, dword [eax + 8]
push 2
pop edi
cmp eax, ebx
mov dword [ebp - 4], edi
jne 0x4217f0
mov eax, 0x47e608
push eax
push str.2.0.2600.0
call fcn.00441ca8
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.00401f6c
cmp esi, ebx
jge 0x42182e
push dword [ebp + 8]
lea eax, [ebp - 0x278]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov esi, 0x494aa8
jmp 0x42187e
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
call fcn.0040104a
mov ecx, eax
call fcn.00432a7d
push dword [ebp + 8]
test eax, eax
je 0x421864
lea eax, [ebp - 0x278]
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov esi, str._quiet__norestart
jmp 0x42187e
lea eax, [ebp - 0x278]
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov esi, str._c:_msiinst__delayrebootq_
mov ecx, dword [ebp - 0x14]
call fcn.0040104a
mov ecx, eax
call fcn.00432a7d
test eax, eax
je 0x4218a7
mov ecx, dword [ebp - 0x14]
call fcn.0040104a
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.004427d5
jmp 0x4218b5
lea eax, [ebp - 0x278]
push 1
push eax
call fcn.00441db4
mov esi, eax
cmp esi, ebx
je 0x42196a
cmp esi, 0xbc2
je 0x4218e1
push ebx
push esi
mov dword [0x4a1c0c], 0x484
call fcn.00440e6e
pop ecx
mov eax, esi
pop ecx
jmp 0x42196c
cmp byte [ebp - 0xd], bl
mov eax, dword [ebp + 0xc]
je 0x421964
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [eax], edi
mov dword [ebp + 8], ebx
call fcn.00417d10
test eax, eax
jne 0x421954
mov ecx, 0x81
lea edi, [ebp - 0x47e]
mov word [ebp - 0x480], bx
mov dword [ebp + 0xc], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.InstallerLocation
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 8], ebx
je 0x42196a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42196a
mov dword [eax], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8