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

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x5513d4]
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 0x4ad6b1
push ebx
push SysReAllocString
call fcn.004ada60
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 0x4ad6b8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ad6b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4ad882
push esi
push 0x100000
call fcn.005097b7
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ad6dd
mov ecx, 0x58c304
call fcn.0046db90
xor al, al
jmp 0x4ad881
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 0x4ad777
jmp 0x4ad720
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 0x4ad720
push esi
call fcn.005097b2
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 0x4ad861
lea eax, [esp + 0x28]
push eax
push ebp
push 0x533474
lea eax, [esp + 0x5c4]
push 0x200
push eax
call fcn.004027c0
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x533474
lea eax, [esp + 0x1d8]
push 0x200
push eax
call fcn.004027c0
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 0x4ad861
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x5bc]
push eax
call fcn.004ad630
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 0x4ad7b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ad870
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ad87f
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.00502f8e
add esp, 0x9b0
ret 8