Function at 0x4ceca0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc20
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0xc1c], eax
push ebx
mov ebx, dword [esp + 0xc2c]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0xc2c]
push eax
push 0x20019
push 0
push ebp
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ced21
push ebx
push SysReAllocString
call fcn.004cf0c0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4ced25
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ced21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4ced46
push esi
push 0x100000
call fcn.005398b8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ced5f
mov ecx, 0x5d381c
call fcn.00487da0
xor al, al
pop esi
mov ecx, dword [esp + 0xc24]
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0xc20
ret 8
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x200
push eax
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x100000
push eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4cede8
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push esi
push dword [esp + 0x28]
push 0
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x200
push eax
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x100000
push eax
push 0
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4ced97
push esi
call fcn.0053867f
add esp, 4
mov dword [esp + 0x10], 0xc8
xor esi, esi
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
pop edi
test eax, eax
jne 0x4ceed2
lea eax, [esp + 0x28]
push eax
push ebp
push 0x568f44
lea eax, [esp + 0x834]
push 0x200
push eax
call fcn.00404ce0
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x568f44
lea eax, [esp + 0x448]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x28
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x444]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ceed2
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x82c]
push eax
call fcn.004ceca0
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cee21
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ceee1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ceef0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4ced45