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

Disassembly:
sub esp, 0xc20
mov eax, dword [0x58bb30]
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 0x4ce2e1
push ebx
push SysReAllocString
call fcn.004ce680
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 0x4ce2e5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ce2e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4ce306
push esi
push 0x100000
call fcn.00538da8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ce31f
mov ecx, 0x5d281c
call fcn.004875a0
xor al, al
pop esi
mov ecx, dword [esp + 0xc24]
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
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 0x4ce3a8
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 0x4ce357
push esi
call fcn.00537b6f
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 0x4ce492
lea eax, [esp + 0x28]
push eax
push ebp
push 0x567d44
lea eax, [esp + 0x834]
push 0x200
push eax
call fcn.00404ce0
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x567d44
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 0x4ce492
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x82c]
push eax
call fcn.004ce260
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 0x4ce3e1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ce4a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ce4b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4ce305