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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa9c
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareClassesLibraryFolder_shell
push SysReAllocString
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464bda
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0xcccccccc
mov dword [ebp - 4], edi
xor ebx, ebx
push esi
jmp 0x464a20
push 0x248
lea ecx, [ebp - 0x288]
push edi
push ecx
call fcn.004c9b50
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x288]
push eax
push ebx
push ecx
mov dword [ebp - 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x464b3d
lea eax, [ebp - 0x288]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x464a67
push str.command
sub eax, edx
push 0x124
lea edx, [ebp - 0x288]
sar eax, 1
push edx
lea esi, [ebp + eax*2 - 0x288]
call fcn.004017b0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
lea ecx, [ebp - 0x288]
push ecx
push edx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464b30
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xaa8]
push ecx
push edi
push edi
push edi
push edx
mov dword [ebp - 0x1c], 0x81e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464b26
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0xaa8], cx
push str.conemu
lea eax, [ebp - 0xaa8]
xor edx, edx
push eax
mov word [esi], dx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
je 0x464b23
lea ecx, [ebp - 0x288]
push edi
push ecx
call fcn.0044c570
add esp, 8
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], eax
call fcn.004bad50
jmp 0x464b26
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 0x200
jb 0x464a20
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
test edi, edi
je 0x464b86
test esi, esi
jle 0x464b86
push edi
lea edx, [ebx + esi*4 - 4]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004c9f70
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
push ecx
mov ecx, dword [ebp - 0x24]
push str.SoftwareClassesLibraryFolder_shell
dec esi
push SysReAllocString
mov dword [ebp - 0x34], esi
call fcn.0045a8e0
jmp 0x464b50
cmp dword [ebp - 0x18], 0
pop esi
jne 0x464bc5
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareClassesLibraryFolder
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464bc5
mov eax, dword [ebp - 0x10]
push str.shell
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x464bd9
push ebx
call fcn.0044c4f0
add esp, 4
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret