Function at 0x422c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
cmp dword [0x4677e8], 0
je 0x422cc0
mov dword [ebp - 0x3c], 0x100
jmp 0x422cc7
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
or edx, 0x20019
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootPending
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422d20
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
jne 0x422d13
mov ecx, 1
test ecx, ecx
jne 0x422d13
mov dword [ebp - 0x50], 0
jmp 0x422d1a
mov dword [ebp - 0x50], 1
mov edx, dword [ebp - 0x50]
mov dword [ebp + 8], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
or ecx, 0x20019
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto_UpdateRebootRequired
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422d73
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
jne 0x422d66
mov eax, 1
test eax, eax
jne 0x422d66
mov dword [ebp - 0x44], 0
jmp 0x422d6d
mov dword [ebp - 0x44], 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp + 8], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x38]
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422e0c
push 0x20
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0043a830
add esp, 0xc
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x30], 1
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push str.UpdateExeVolatile
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x422e02
cmp dword [ebp - 0x2c], 0
jbe 0x422e02
cmp dword [ebp + 8], 0
jne 0x422df5
cmp dword [ebp - 0x24], 0
jne 0x422df5
mov dword [ebp - 0x4c], 0
jmp 0x422dfc
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x28]
push edx
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422ef2
push 0x20
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0043a830
add esp, 0xc
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push str.SystemUpdateOnBoot
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x422e94
cmp dword [ebp - 0x2c], 0
jbe 0x422e94
cmp dword [ebp + 8], 0
jne 0x422e87
cmp dword [ebp - 0x24], 0
jne 0x422e87
mov dword [ebp - 0x40], 0
jmp 0x422e8e
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x40]
mov dword [ebp + 8], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
push str.PendingFileRenameOperations
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 8], 0
jne 0x422edb
cmp dword [ebp - 0x34], 0
jne 0x422ed2
cmp dword [ebp - 0x2c], 0
ja 0x422edb
mov dword [ebp - 0x48], 0
jmp 0x422ee2
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret