Function at 0x42c46c
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
cmp word [0x48fb88], si
jne 0x42c48f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48ffe8]
jmp 0x42c68f
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x5c
push esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
jne 0x42c62d
lea eax, [ebp - 4]
push eax
movzx eax, word [0x48fb88]
or eax, 0x2001b
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x42c667
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jae 0x42c50b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042aed6
cmp dword [ebp - 0xc], esi
jne 0x42c5d1
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
dec eax
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x42c57b
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 8]
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp ebx, esi
jne 0x42c576
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
cmp ebx, esi
je 0x42c576
mov dword [ebp - 0xc], ebx
dec dword [ebp - 8]
jns 0x42c535
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x42c5d1
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 8]
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x42c5b6
mov dword [ebp - 0xc], ebx
jmp 0x42c5cc
cmp word [edi], si
je 0x42c5cc
push edi
push dword [ebp - 4]
call dword [0x48ffe8]
cmp eax, esi
je 0x42c5cc
mov dword [ebp - 0xc], eax
dec dword [ebp - 8]
jns 0x42c586
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x48ffec], esi
jne 0x42c602
push esi
push 0x48ffec
push str.Advapi32.dll
push str.RegDeleteKeyExW
call fcn.00426fd9
add esp, 0x10
cmp dword [0x48ffec], esi
je 0x42c619
movzx eax, word [0x48fb88]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48ffec]
mov ebx, eax
cmp ebx, esi
je 0x42c620
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x24]
call fcn.0042602e
mov eax, dword [ebp - 0xc]
jmp 0x42c68d
mov eax, edi
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00426041
lea eax, [ebp - 4]
push eax
movzx eax, word [0x48fb88]
or eax, 2
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x42c66b
lea ecx, [ebp - 0x14]
call fcn.0042602e
mov eax, ebx
jmp 0x42c68d
add edi, 2
push edi
push dword [ebp - 4]
call dword [0x48ffe8]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.0042602e
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret