Function at 0x4227d2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x422a01
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422a01
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
push esi
mov ebx, str.PendingFileRenameOperations
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x422877
cmp dword [ebp - 8], esi
je 0x422877
push dword [ebp - 8]
call fcn.004258e9
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x42284a
mov ecx, 0x47f994
call fcn.0041d704
push eax
call fcn.0041e30a
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x422877
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041e81e
add esp, 0x10
test al, al
jne 0x422885
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422a01
lea ecx, [ebp - 0x20]
call fcn.0041c7ab
mov edi, 0x42eb7c
lea ecx, [ebp - 0x44]
push edi
call fcn.0041c81b
push edi
lea ecx, [ebp - 0x38]
call fcn.0041c81b
push esi
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.0041ca2d
cmp dword [ebp + 0xc], esi
je 0x4228c1
push esi
lea ecx, [ebp - 0x38]
push dword [ebp + 0xc]
call fcn.0041ca2d
xor edi, edi
cmp dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
jbe 0x42293e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
mov eax, dword [eax + edi*4]
add eax, dword [ebp - 0xc]
push eax
call fcn.0041c81b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + edi*4 + 4]
add eax, dword [ebp - 0xc]
push eax
call fcn.0041c81b
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x50]
call fcn.0041cb5c
test al, al
jne 0x42291a
push esi
lea ecx, [ebp - 0x44]
call fcn.0041d704
add eax, 4
lea ecx, [ebp - 0x50]
push eax
call fcn.0041cbe0
test al, al
je 0x422994
cmp dword [ebp - 0x2c], esi
jne 0x422963
cmp dword [ebp + 0xc], esi
jne 0x422994
inc dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0041c8e1
lea ecx, [ebp - 0x50]
call fcn.0041c8e1
inc edi
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x4228cb
push dword [ebp - 0x10]
call fcn.004258de
cmp dword [ebp + 8], esi
pop ecx
je 0x4229e0
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4229c8
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4229e0
jbe 0x422994
cmp dword [ebp + 0xc], esi
je 0x422994
lea eax, [ebp - 0x38]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041cb5c
test al, al
jne 0x422924
push esi
lea ecx, [ebp - 0x38]
call fcn.0041d704
add eax, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.0041cbe0
test al, al
jne 0x422924
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
push eax
call fcn.0041caab
push esi
lea ecx, [ebp - 0x20]
call fcn.0041c9de
cmp dword [ebp - 0x2c], esi
jbe 0x4229ba
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0041caab
push esi
lea ecx, [ebp - 0x20]
call fcn.0041c9de
jmp 0x422927
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.0041d704
push eax
push 7
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x38]
call fcn.0041c8e1
lea ecx, [ebp - 0x44]
call fcn.0041c8e1
lea ecx, [ebp - 0x20]
call fcn.0041c8e1
pop edi
pop esi
pop ebx
leave
ret 8