Function at 0x4fcc50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004fba20
mov esi, eax
cmp esi, edi
jl 0x4fce0b
mov ebx, dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x28]
push str.RegistryMachineSYSTEMCurrentControlSetControlSession_Manager
mov ecx, eax
push ecx
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call ebx
lea edx, [esp + 0x30]
push edx
push 3
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
jl 0x4fce09
push str.PendingFileRenameOperations
lea ecx, [esp + 0x24]
push ecx
call ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.Ntdll.dll_NtQueryValueKey]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push edi
push 2
lea ecx, [esp + 0x30]
push ecx
push edx
call ebx
mov esi, eax
cmp esi, 0xc0000034
jne 0x4fcd36
movzx eax, word [esp + 0x18]
mov ecx, dword fs:[0x18]
add eax, 0x16
push eax
mov eax, dword [ecx + 0x30]
mov ecx, dword [eax + 0x18]
push 8
push ecx
call dword [sym.imp.Ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x4fcd2c
mov dword [edi + 4], 7
jmp 0x4fcd82
mov esi, 0xc000009a
jmp 0x4fcdef
cmp esi, 0xc0000023
jne 0x4fcd7e
movzx edx, word [esp + 0x18]
mov eax, dword [esp + 0x14]
lea esi, [edx + eax + 4]
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push esi
push 0
push edx
call dword [sym.imp.Ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x4fcd2c
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
push edi
push 2
lea ecx, [esp + 0x30]
push ecx
push edx
call ebx
mov esi, eax
test esi, esi
jl 0x4fcdef
mov eax, dword [edi + 8]
lea esi, [eax + edi + 0xc]
cmp eax, 2
jb 0x4fcd91
sub esi, 2
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.005186a0
movzx eax, word [esp + 0x24]
mov byte [esi + eax], 0
add esi, eax
mov byte [esi + 1], 0
inc esi
mov byte [esi + 1], 0
inc esi
mov byte [esi + 1], 0
inc esi
mov byte [esi + 1], 0
inc esi
mov byte [esi + 1], 0
mov edx, dword [edi + 4]
inc esi
add esp, 0xc
sub esi, edi
lea eax, [esi - 0xb]
push eax
lea ecx, [edi + 0xc]
push ecx
push edx
mov dword [edi + 8], eax
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.Ntdll.dll_NtSetValueKey]
mov esi, eax
test edi, edi
je 0x4fce09
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edi
push 0
push edx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4fce28
push eax
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edi
push edx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4fce37
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret