Function at 0x438ad6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a70d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b2d60]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.RepairInstalledArm...
lea ecx, [esp + 0x30]
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [esp + 0x30]
push eax
push 2
mov dword [esp + 0x4c], ebx
call fcn.00411806
or dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0x38]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push str.armsvc.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x438d4a
lea eax, [esp + 0x2c]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x2b], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438bf7
push 0x208
call fcn.00450696
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ecx
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [esp + 0x40]
mov dword [esp + 0x30], eax
call esi
cmp eax, 0xea
jne 0x438be4
cmp dword [esp + 0x18], ebx
je 0x438bb9
push dword [esp + 0x18]
call fcn.004505b9
pop ecx
mov eax, dword [esp + 0x28]
add eax, eax
push eax
call fcn.00450696
pop ecx
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x438bed
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push ebx
push ebx
push edi
push dword [esp + 0x40]
call esi
test eax, eax
jmp 0x438be6
cmp eax, ebx
jne 0x438bed
mov byte [esp + 0x17], 1
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x16], bl
cmp byte [esp + 0x17], bl
je 0x438cfb
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x438d4a
push str.armsvc.exe
lea ecx, [esp + 0x28]
call fcn.004012e2
lea edi, [esp + 0x24]
mov dword [esp + 0x40], 1
call fcn.00408b79
mov dword [esp + 0x1c], esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x438cea
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004012e2
lea edi, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.00408b79
push dword [esp + 0x24]
xor ecx, ecx
mov esi, edi
call fcn.004073c6
cmp eax, 0xffffffff
je 0x438c7c
mov byte [esp + 0x16], 1
cmp byte [esp + 0x16], bl
jne 0x438ccf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
lea eax, [eax + ecx*2 + 2]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.00401356
lea edi, [esp + 0x20]
call fcn.00408b79
push dword [esp + 0x24]
xor ecx, ecx
mov esi, edi
call fcn.004073c6
cmp eax, 0xffffffff
je 0x438cbc
mov byte [esp + 0x16], 1
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017df
cmp byte [esp + 0x16], bl
je 0x438c34
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [esp + 0x18], ebx
je 0x438d0b
push dword [esp + 0x18]
call fcn.004505b9
pop ecx
cmp byte [esp + 0x16], bl
je 0x438d4a
push str.will_not_repair__found_pending_reboot
lea ecx, [esp + 0x28]
call fcn.004012e2
push ebx
lea eax, [esp + 0x28]
push eax
push 2
mov dword [esp + 0x4c], 3
call fcn.00411806
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x438e85
call fcn.0043f3c0
push eax
lea ecx, [esp + 0x1c]
call fcn.004013a1
mov dword [esp + 0x40], 4
mov byte [esp + 0x17], bl
xor edi, edi
cmp byte [esp + 0x17], bl
jne 0x438df7
push 0x104
lea ecx, [esp + 0x1c]
call fcn.0040165f
push eax
push edi
push ebx
push str.A6EADE66_0804_0000_1959_000000000000
call sub.msi.dll_MsiSourceListClearAllW
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004076ad
cmp esi, ebx
jne 0x438de4
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x438de4
push str.found_installed:
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], 1
call fcn.004012e2
push ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push 2
mov byte [esp + 0x50], 5
call fcn.00411336
mov byte [esp + 0x50], 4
mov ecx, dword [esp + 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
inc edi
cmp esi, ebx
je 0x438d67
cmp byte [esp + 0x17], bl
je 0x438e77
push ebx
push 2
call sub.msi.dll_MsiSetPropertyW
push 4
push dword [esp + 0x1c]
call sub.msi.dll_MsiSetComponentStateW
mov esi, eax
cmp esi, ebx
je 0x438e43
cmp esi, 0xbc2
je 0x438e43
push str.failed_to_reinstall:
lea ecx, [esp + 0x24]
call fcn.004012e2
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x50], 7
call fcn.00411336
mov ecx, dword [esp + 0x30]
jmp 0x438e6c
push str.successfully_reinstalled:
lea ecx, [esp + 0x30]
call fcn.004012e2
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push 2
mov byte [esp + 0x50], 6
call fcn.00411336
mov ecx, dword [esp + 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret