Function at 0x456a40
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 0x456a9d
xor al, al
pop ebp
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0049dea6
add esp, 0x6d4
ret 8
push esi
push edi
mov esi, ebp
mov edi, 0x80000001
call fcn.00456760
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 0x456ae6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x456adf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x456c86
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 0x456b91
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 0x456b30
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 0x456c67
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x300]
push 0x4b3908
push eax
call fcn.0049deb5
lea ecx, [esp + 0x40]
push ecx
push ebp
lea edx, [esp + 0x110]
push 0x4b3908
push edx
call fcn.0049deb5
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 0x456c67
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x2fc]
push ecx
call fcn.00456a40
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 0x456bc3
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x456c79
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x456c84
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x6dc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049dea6
add esp, 0x6d4
ret 8