Function at 0x436a28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46694b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4add60]
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.00410d56
or dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0x38]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push str.armsvc.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x436c9c
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 0x436b49
push 0x208
call fcn.0044e117
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 0x436b36
cmp dword [esp + 0x18], ebx
je 0x436b0b
push dword [esp + 0x18]
call fcn.0044e03a
pop ecx
mov eax, dword [esp + 0x28]
add eax, eax
push eax
call fcn.0044e117
pop ecx
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x436b3f
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 0x436b38
cmp eax, ebx
jne 0x436b3f
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 0x436c4d
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x436c9c
push str.armsvc.exe
lea ecx, [esp + 0x28]
call fcn.004012e2
lea edi, [esp + 0x24]
mov dword [esp + 0x40], 1
call fcn.00407f2a
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 0x436c3c
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004012e2
lea edi, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.00407f2a
push dword [esp + 0x24]
xor ecx, ecx
mov esi, edi
call fcn.00406946
cmp eax, 0xffffffff
je 0x436bce
mov byte [esp + 0x16], 1
cmp byte [esp + 0x16], bl
jne 0x436c21
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.00407f2a
push dword [esp + 0x24]
xor ecx, ecx
mov esi, edi
call fcn.00406946
cmp eax, 0xffffffff
je 0x436c0e
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.004017ba
cmp byte [esp + 0x16], bl
je 0x436b86
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
cmp dword [esp + 0x18], ebx
je 0x436c5d
push dword [esp + 0x18]
call fcn.0044e03a
pop ecx
cmp byte [esp + 0x16], bl
je 0x436c9c
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.00410d56
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
jmp 0x436dd7
call fcn.0043ce9a
push eax
lea ecx, [esp + 0x1c]
call fcn.00413a25
mov dword [esp + 0x40], 4
mov byte [esp + 0x17], bl
xor edi, edi
cmp byte [esp + 0x17], bl
jne 0x436d49
push 0x104
lea ecx, [esp + 0x1c]
call fcn.0040163a
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.00409da3
cmp esi, ebx
jne 0x436d36
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x436d36
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.00410886
mov byte [esp + 0x50], 4
mov ecx, dword [esp + 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
inc edi
cmp esi, ebx
je 0x436cb9
cmp byte [esp + 0x17], bl
je 0x436dc9
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 0x436d95
cmp esi, 0xbc2
je 0x436d95
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.00410886
mov ecx, dword [esp + 0x30]
jmp 0x436dbe
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.00410886
mov ecx, dword [esp + 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
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