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

Disassembly:
mov eax, 0x34c0
call fcn.0051e250
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebx, ebx
push 0x56ce88
push SysReAllocStringLen
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x4c50a0
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1442]
mov word [esp + 0x1440], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1440]
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x24], 0x823
mov esi, 1
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x4c5095
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x248a]
mov word [esp + 0x2488], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1440]
lea edx, [esp + 0x2488]
push ecx
push 0x56ce88
push str._s_s
push 0x823
push edx
stosw word es:[edi], ax
call ebx
add esp, 0x14
lea eax, [esp + 0x2488]
push eax
push SysReAllocStringLen
call ebp
test eax, eax
jne 0x4c5093
mov ecx, 0x412
lea edi, [esp + 0x1440]
rep stosd dword es:[edi], eax
dec esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1440]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0x823
inc esi
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
je 0x4c5005
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ebx
push edx
mov dword [esp + 0x14], ebx
call fcn.004c22c0
add esp, 4
test eax, eax
je 0x4c51fa
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x238]
push eax
push ecx
call fcn.004c1e70
mov edi, dword [sym.imp.MSVCRT.dll_wcsncpy]
push 0x104
lea edx, [esp + 0x44c]
push 0x56ce1c
push edx
call edi
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x454]
push eax
push ecx
call esi
lea edx, [esp + 0x45c]
push 0x104
lea eax, [esp + 0x50]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x58]
push ecx
push edx
push SysReAllocStringLen
call fcn.004c1f00
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
call fcn.004c1fb0
add esp, 0x40
test eax, eax
je 0x4c51bd
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x444]
push eax
push ecx
push SysReAllocStringLen
call fcn.004c2180
lea edx, [esp + 0x450]
push 0x56ce10
push edx
call esi
lea eax, [esp + 0x34]
push ebx
lea ecx, [esp + 0x45c]
push eax
push ecx
push SysReAllocStringLen
call fcn.004c2180
lea edx, [esp + 0x468]
push 0x56cdc4
push edx
call esi
lea eax, [esp + 0x4c]
push 1
lea ecx, [esp + 0x474]
push eax
push ecx
push SysReAllocStringLen
call fcn.004c2180
add esp, 0x40
lea edx, [esp + 0x440]
push edx
push SysReAllocStringLen
call ebp
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c51d4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4c51fa
push ebx
push eax
lea eax, [esp + 0x38]
push eax
push SysReAllocStringLen
call fcn.004c2180
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0051e1fa
add esp, 0x14
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4c5211
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c0
ret