Function at 0x405ff0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x54435653
push 0x400
push 1
call edi
push 0x54435653
push 0x400
push 1
mov dword [esp + 0x30], eax
call edi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ebx, eax
push str.RegistryMachineSOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ebx
push eax
mov dword [esp + 0x48], 0
call esi
push str.RegistryUser_
lea eax, [esp + 0x4c]
push eax
call esi
push str.SoftwareMicrosoftInternet_ExplorerMain_
lea eax, [esp + 0x6c]
push eax
call esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push eax
mov dword [esp + 0x1c], 0x4000000
mov dword [esp + 0x24], 0x4000000
call ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call ebx
push 0x38
lea eax, [esp + 0x74]
push 0
push eax
call sub.ntoskrnl.exe_memset
lea eax, [esp + 0x48]
mov dword [esp + 0x80], 0x20
mov dword [esp + 0x88], eax
add esp, 0xc
lea eax, [esp + 0x40]
mov dword [esp + 0x78], str.RefCount
mov dword [esp + 0x84], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 0xf003f
lea eax, [esp + 0x18]
mov dword [esp + 0x88], 4
push eax
mov dword [esp + 0x94], 4
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test eax, eax
js 0x40627b
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 2
push dword [esp + 0x20]
call esi
push 0x54435653
push dword [esp + 0x10]
push 1
call edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x4c], edi
push edi
push 2
push dword [esp + 0x20]
call esi
xor esi, esi
cmp dword [edi + 0x14], esi
jbe 0x406273
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push esi
push dword [esp + 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
push 0x54435653
push dword [esp + 0x10]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push edi
push 0
push esi
push dword [esp + 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov cx, word [edi + 0xc]
mov word [esp + 0x28], cx
mov ax, word [edi + 0xc]
mov word [esp + 0x2a], ax
lea eax, [edi + 0x10]
mov dword [esp + 0x2c], eax
cmp cx, 0x14
jbe 0x406233
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
call ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
call ebx
push 0
push 0
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x2c]
push 0
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp dword [esp + 0x3c], 0
jbe 0x406233
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x18]
push eax
call ebx
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00405f40
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 0x54435653
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, dword [esp + 0x44]
inc esi
cmp esi, dword [edi + 0x14]
jb 0x406187
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x54435653
push edi
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40628b
push 0x54435653
push eax
call ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40629b
push 0x54435653
push eax
call ebx
push dword [esp + 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret