Function at 0x405870
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push edi
xor eax, eax
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xabc
mov word [ebp - 0xa68], ax
mov eax, dword [0x41b718]
movdqu xmm0, xmmword [str.___s__s__n_s____x]
mov dword [ebp - 0xa84], 0x730025
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa98]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0xa80], 0x25005c
mov dword [ebp - 0xa7c], 0x73
mov dword [ebp - 0xa54], 5
mov dword [ebp - 0xa40], 0x100
mov dword [ebp - 0xa58], 0xffff0001
mov dword [esp + 4], str.TypeLib_
mov dword [esp], 0x80000000
mov dword [ebp - 0xa9c], eax
movups xmmword [ebp - 0xa78], xmm0
call eax
sub esp, 0xc
test eax, eax
jne 0x405b4c
mov dword [ebp - 0xaa0], 0xffffffff
lea esi, [esi]
add dword [ebp - 0xaa0], 1
mov eax, dword [ebp - 0xaa0]
lea ecx, [ebp - 0x818]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405b10
lea eax, [ebp - 0xa94]
mov dword [esp + 8], eax
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
mov eax, dword [ebp - 0xa9c]
call eax
sub esp, 0xc
test eax, eax
jne 0x405928
mov esi, 0xffffffff
lea edi, [ebp - 0xa18]
lea esi, [esi]
mov eax, dword [ebp - 0xa94]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405af8
lea eax, [ebp - 0xa90]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa94]
mov dword [esp], eax
mov eax, dword [ebp - 0xa9c]
call eax
sub esp, 0xc
test eax, eax
jne 0x4059a0
lea eax, [ebp - 0xa88]
lea ebx, [ebp - 0x618]
mov dword [ebp - 0xa88], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa90]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 4], 0
mov dword [ebp - 0xaa4], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x405a44
cmp word [ebp - 0x618], 0
jne 0x405b60
mov eax, dword [sym.imp.user32.dll_wsprintfW]
mov dword [ebp - 0xa44], edi
lea edx, [ebp - 0x418]
lea ebx, [ebp - 0x218]
mov dword [ebp - 0xaa8], eax
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 0xaa4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaa4]
lea eax, [ebp - 0x818]
sub esp, 4
mov dword [esp + 8], eax
lea eax, [ebp - 0xa84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xaa8]
mov dword [esp], edx
mov dword [esp + 0xc], edi
call eax
mov dword [esp], ebx
mov edx, dword [ebp - 0xaa4]
mov eax, 2
lea ecx, [ebp - 0x818]
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0xa5c]
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4059a0
mov eax, dword [ebp - 0xa94]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405928
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b718]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [0x41b4dc]
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [ebp - 0xaa8], edx
mov dword [esp + 4], 0xdd
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0xaa8]
mov eax, ebx
sub esp, 0x10
cmp word [ebp - 0x618], 0
je 0x405bb1
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405ba8
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_wsprintfW]
lea ecx, [ebp - 0xa78]
mov dword [esp + 8], edx
mov dword [ebp - 0xaac], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edi
mov dword [ebp - 0xaa8], eax
call eax
lea eax, [ebp - 0xa8c]
mov dword [ebp - 0xa44], ebx
lea ebx, [ebp - 0x218]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 0xa88], 0x100
mov dword [esp], eax
mov eax, dword [ebp - 0xa9c]
mov dword [esp + 4], str.0win32
call eax
lea eax, [ebp - 0xa88]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa8c]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
mov dword [esp + 4], 0
call eax
mov eax, dword [ebp - 0xa8c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaac]
sub esp, 4
jmp 0x405a61