Function at 0x456d10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x4c8d10
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x818]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x456da1
cmp edi, esi
je 0x456dc1
mov eax, edi
lea edx, [eax + 2]
jmp 0x456d90
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x456d90
sub eax, edx
sar eax, 1
je 0x456dc1
cmp dword [ebp - 0x1c], esi
jne 0x456dd6
cmp ebx, esi
je 0x456dc1
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x456db0
sub eax, edx
sar eax, 1
jne 0x456dd6
mov dword [ebp - 0x40], 0x57
push 0x5042a0
lea edx, [ebp - 0x40]
push edx
call fcn.004abd6e
cmp dword [ebp - 0x20], esi
jne 0x456de2
mov dword [ebp - 0x20], reloc.OLEAUT32.dll_SysReAllocString
cmp edi, esi
je 0x456e2e
mov eax, edi
lea edx, [eax + 2]
jmp 0x456df0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x456df0
sub eax, edx
sar eax, 1
je 0x456e2e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x456e34
mov dword [ebp - 0x34], eax
push 0x5042a0
lea edx, [ebp - 0x34]
push edx
call fcn.004abd6e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], esi
jne 0x456e40
mov dword [ebp - 0x1c], reloc.OLEAUT32.dll_SysReAllocString
cmp ebx, esi
je 0x456e8b
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x456e50
sub eax, edx
sar eax, 1
je 0x456e8b
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov edx, ebx
call fcn.00455ef0
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x456e93
mov dword [ebp - 0x48], eax
push 0x5042a0
lea eax, [ebp - 0x48]
push eax
call fcn.004abd6e
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
jmp 0x456e96
mov edi, dword [ebp - 0x24]
cmp byte [ebp + 0x81c], 0
je 0x456f6f
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x456ed3
mov dword [ebp - 0x3c], eax
push 0x5042a0
lea eax, [ebp - 0x3c]
push eax
call fcn.004abd6e
mov dword [ebp - 0x44], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
cmp esi, dword [ebp - 0x30]
jge 0x456f6d
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004ab450
add esp, 0xc
mov dword [ebp - 0x2c], 0x800
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x456f5c
mov edx, dword [ebp + 0x81c]
push edx
lea eax, [ebp]
push eax
push edi
mov ecx, eax
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00456d10
add esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x456f54
mov dword [ebp - 0x4c], eax
push 0x5042a0
lea eax, [ebp - 0x4c]
push eax
call fcn.004abd6e
add esi, 1
mov dword [ebp - 0x44], esi
jmp 0x456ee0
mov dword [ebp - 0x38], eax
push 0x5042a0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004abd6e
xor esi, esi
push edi
mov ecx, dword [ebp - 0x18]
call fcn.00456b20
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x456fb3
cmp edi, esi
je 0x456fc3
cmp edi, dword [ebp - 0x1c]
je 0x456fc3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x456fd6
cmp eax, dword [ebp - 0x20]
je 0x456fd6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x804
mov esp, ebp
pop ebp
ret