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

Disassembly:
sub esp, 0xc20
mov eax, dword [0x572844]
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 0x4c1d11
push ebx
push SysReAllocString
call fcn.004c20b0
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 0x4c1d15
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c1d11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4c1d36
push esi
push 0x100000
call fcn.00525bb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c1d4f
mov ecx, 0x5b68fc
call fcn.0047b030
xor al, al
pop esi
mov ecx, dword [esp + 0xc24]
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
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 0x4c1dd8
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 0x4c1d87
push esi
call fcn.00525b95
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 0x4c1ec2
lea eax, [esp + 0x28]
push eax
push ebp
push 0x552ab4
lea eax, [esp + 0x834]
push 0x200
push eax
call fcn.00402c90
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x552ab4
lea eax, [esp + 0x448]
push 0x200
push eax
call fcn.00402c90
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 0x4c1ec2
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x82c]
push eax
call fcn.004c1c90
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 0x4c1e11
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c1ed1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c1ee0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4c1d35