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

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x9ac], eax
push ebp
mov ebp, dword [esp + 0x9b8]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x9c0]
push eax
push 0x20019
push 0
push ebp
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4ec1
push edi
push SysReAllocString
call fcn.004a5270
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4a4ec8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a4ec1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4a508e
push esi
push 0x100000
call fcn.004fe8be
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a4eed
mov ecx, 0x57f41c
call fcn.00466710
xor al, al
jmp 0x4a508d
push ebx
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 ebx, ebx
lea eax, [esp + 0x1c]
push ebx
push eax
lea eax, [esp + 0x1d0]
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4a4f87
jmp 0x4a4f30
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 ebx
push eax
lea eax, [esp + 0x1d0]
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4a4f30
push esi
call fcn.004fe8b9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x24]
add esp, 4
mov dword [esp + 0x10], 0xc8
xor esi, esi
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 ebx
test eax, eax
jne 0x4a506e
lea eax, [esp + 0x2c]
push eax
push ebp
push 0x5265b4
lea eax, [esp + 0x5c8]
push 0x200
push eax
call fcn.00402720
lea eax, [esp + 0x40]
push eax
push edi
push 0x5265b4
lea eax, [esp + 0x1dc]
push 0x200
push eax
call fcn.00402720
add esp, 0x28
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x1d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a506e
lea eax, [esp + 0x1bc]
push eax
lea eax, [esp + 0x5c0]
push eax
call fcn.004a4e40
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
inc esi
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x4a4fc1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x4a5080
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a508b
push eax
call esi
mov al, 1
pop esi
mov ecx, dword [esp + 0x9b4]
pop edi
pop ebp
xor ecx, esp
call fcn.004f833c
add esp, 0x9b0
ret 8