Function at 0x422a63
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x43e71c
call fcn.004036d1
sub esp, 0x120
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.00421e77
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x422c66
push 0x404ad8
push dword [ebp + 8]
call fcn.0040fa78
test eax, eax
jne 0x422c66
lea eax, [ebp - 0x14]
push eax
push 0x422d28
push 1
push ebx
push 0x422d38
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x422c66
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp + 0xc], eax
jne 0x422c99
cmp dword [ebp + 0x10], ebx
jne 0x422c66
push 0x40
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x446f78]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call fcn.0040cd49
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x422c66
push 0x422d20
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xac]
push eax
call esi
push 0x422d08
lea eax, [ebp - 0xac]
push eax
call esi
mov edi, 0x80000000
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
push 0x20019
lea eax, [ebp - 0xac]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], ebx
call fcn.004206b7
test eax, eax
jne 0x422bd2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], eax
call fcn.00420652
cmp dword [ebp - 0x1c], ebx
jne 0x422bd2
cmp dword [ebp + 0x10], ebx
jne 0x422bd2
lea eax, [ebp - 0xac]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x422d20
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0xac]
push eax
call esi
push 0x422cf0
lea eax, [ebp - 0xac]
push eax
call esi
push 0x20019
lea eax, [ebp - 0xac]
push eax
push edi
lea ecx, [ebp + 8]
call fcn.004206b7
cmp eax, ebx
jne 0x422c4f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00420652
cmp esi, ebx
jne 0x422c4f
cmp dword [ebp + 0x10], ebx
jne 0x422c4f
lea eax, [ebp - 0xac]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00420652
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00420652
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404bd6
mov eax, ebx
lea esp, [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
je 0x422ccc
cmp dword [eax], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
jne 0x422cc1
call dword [ecx + 0x14]
jmp 0x422cc4
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x422cdf
mov ebx, eax
jmp 0x422c66
cmp dword [eax], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
jne 0x422cdc
call dword [ecx + 0x18]
jmp 0x422cdf
call dword [ecx + 0x20]
add dword [ebp + 0xc], 8
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x422c96
jmp 0x422ada