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

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x9ac], eax
push ebx
mov ebx, dword [esp + 0x9bc]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x9bc]
push eax
push 0x20019
push 0
push ebp
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ae2e1
push ebx
push SysReAllocString
call fcn.004ae690
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 0x4ae2e8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ae2e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4ae4b2
push esi
push 0x100000
call fcn.00524aa7
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ae30d
mov ecx, 0x5b77e4
call fcn.0046e5a0
xor al, al
jmp 0x4ae4b1
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 + 0x1d0]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4ae3a7
jmp 0x4ae350
push dword [esp + 0x18]
lea eax, [esp + 0x1c0]
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 + 0x1d0]
push eax
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4ae350
push esi
call fcn.00524aa2
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 0x4ae491
lea eax, [esp + 0x28]
push eax
push ebp
push 0x550f34
lea eax, [esp + 0x5c4]
push 0x200
push eax
call fcn.00402930
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x550f34
lea eax, [esp + 0x1d8]
push 0x200
push eax
call fcn.00402930
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 + 0x1d4]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ae491
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x5bc]
push eax
call fcn.004ae260
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 0x4ae3e0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ae4a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ae4af
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [esp + 0x9b4]
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x9b0
ret 8