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

Disassembly:
sub esp, 0x6d4
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x6d0], eax
mov eax, dword [esp + 0x6d8]
push ebp
mov ebp, dword [esp + 0x6e0]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45653d
xor al, al
pop ebp
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x6d4
ret 8
push esi
push edi
mov esi, ebp
mov edi, 0x80000001
call fcn.00456200
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebp
push edi
call esi
test eax, eax
je 0x456586
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45657f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x456726
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2fc]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push edi
push eax
mov dword [esp + 0x30], 0xc8
mov dword [esp + 0x38], 0x3e8
call ebx
test eax, eax
jne 0x456631
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x2fc]
push edx
mov edx, dword [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2fc]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
inc edi
push edi
push edx
mov dword [esp + 0x30], 0xc8
mov dword [esp + 0x38], 0x3e8
call ebx
test eax, eax
je 0x4565d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor edi, edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push edi
push eax
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x456707
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x300]
push 0x4b38cc
push eax
call fcn.0049e0d5
lea ecx, [esp + 0x40]
push ecx
push ebp
lea edx, [esp + 0x110]
push 0x4b38cc
push edx
call fcn.0049e0d5
add esp, 0x20
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x114]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x456707
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x2fc]
push ecx
call fcn.004564e0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
inc edi
push edi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x456663
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x456719
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x456724
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x6dc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049e0c6
add esp, 0x6d4
ret 8