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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x124
mov eax, dword [0x506fb050]
push ebx
push esi
mov esi, dword [ebp + 0x78]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x68], eax
push edi
mov dword [ebp - 0xac], ebx
je 0x506f655b
push 0x506f65d0
push dword [ebp + 0x74]
call fcn.506f289c
test eax, eax
jne 0x506f655b
lea eax, [ebp - 0xac]
push eax
push 0x506f65b0
push 1
push ebx
push 0x506f65c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x506f654b
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0xb0], eax
jne 0x506f6392
cmp dword [ebp + 0x7c], ebx
jne 0x506f654b
push 0x40
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x506fb66c]
mov edi, eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp + 0x78], ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x506f6409
push esi
call fcn.506f516a
test al, al
je 0x506f6409
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.506f19f4
mov eax, esp
jmp 0x506f6412
mov eax, dword [ebp - 0xb0]
cmp dword [ebp + 0x7c], ebx
mov esi, dword [eax + 4]
lea edi, [ebp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp + 0x58]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 0x74]
movsd dword es:[edi], dword [esi]
je 0x506f63dd
cmp dword [eax], 1
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
jne 0x506f63bd
call dword [ecx + 0x14]
jmp 0x506f63c0
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x506f63f3
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x506f63d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x506f655d
cmp dword [eax], 1
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
jne 0x506f63f0
call dword [ecx + 0x18]
jmp 0x506f63f3
call dword [ecx + 0x20]
add dword [ebp - 0xb0], 8
mov eax, dword [ebp - 0xb0]
cmp dword [eax], ebx
jne 0x506f638c
jmp 0x506f6327
push esi
lea ecx, [ebp + 0x78]
call fcn.506f5b58
push edi
push esi
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.506f9580
cmp eax, ebx
mov dword [ebp - 0xb0], eax
je 0x506f6543
push 0x506f65a8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
push dword [ebp - 0xb0]
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [ebp - 0x28]
push eax
call esi
push 0x506f6590
lea eax, [ebp - 0x28]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x28]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp + 0x74]
mov dword [ebp - 0xb4], edi
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x7c], ebx
call fcn.506f9580
test eax, eax
jne 0x506f64bf
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x74]
mov dword [ebp - 0xb8], eax
call fcn.506f5305
cmp dword [ebp - 0xb8], ebx
jne 0x506f64bf
cmp dword [ebp + 0x7c], ebx
jne 0x506f64bf
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x506f65a8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
push dword [ebp - 0xb0]
lea eax, [ebp - 0x28]
push eax
call esi
push 0x506f6578
lea eax, [ebp - 0x28]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp + 0x74]
call fcn.506f9580
test eax, eax
jne 0x506f6530
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x74]
mov esi, eax
call fcn.506f5305
cmp esi, ebx
jne 0x506f6530
cmp dword [ebp + 0x7c], ebx
jne 0x506f6530
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp + 0x74]
call fcn.506f5305
lea ecx, [ebp - 0xb4]
call fcn.506f5305
lea ecx, [ebp + 0x78]
call fcn.506f58f5
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x506f655b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0xc4]
mov ecx, dword [ebp + 0x68]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc