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

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x528af4]
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 0x49ef51
push edi
push SysReAllocString
call fcn.0049f300
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 0x49ef58
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49ef51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x49f11e
push esi
push 0x100000
call fcn.004f2e54
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ef7d
mov ecx, 0x56df60
call fcn.00462de0
xor al, al
jmp 0x49f11d
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 0x49f017
jmp 0x49efc0
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 0x49efc0
push esi
call fcn.004f252e
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 0x49f0fe
lea eax, [esp + 0x2c]
push eax
push ebp
push 0x5102f4
lea eax, [esp + 0x5c8]
push 0x200
push eax
call fcn.004028e0
lea eax, [esp + 0x40]
push eax
push edi
push 0x5102f4
lea eax, [esp + 0x1dc]
push 0x200
push eax
call fcn.004028e0
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 0x49f0fe
lea eax, [esp + 0x1bc]
push eax
lea eax, [esp + 0x5c0]
push eax
call fcn.0049eed0
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 0x49f051
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x49f110
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49f11b
push eax
call esi
mov al, 1
pop esi
mov ecx, dword [esp + 0x9b4]
pop edi
pop ebp
xor ecx, esp
call fcn.004ebbd8
add esp, 0x9b0
ret 8