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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0xa
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x678]
push ebx
sub esp, 0x6a0
mov dword [ebp - 0x648], 0x45
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x688]
mov dword [ebp - 0x634], 0x100
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x64c], 0xffff0001
mov dword [esp + 4], str.CLSID_
mov dword [esp], 0x80000000
mov dword [ebp - 0x690], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x4064be
mov dword [ebp - 0x68c], 0xffffffff
mov edi, dword [sym.imp.user32.dll_SendMessageW]
lea ebx, [ebp - 0x60c]
lea esi, [esi]
add dword [ebp - 0x68c], 1
mov eax, dword [ebp - 0x68c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x688]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x406460
lea eax, [ebp - 0x684]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x688]
mov dword [esp], eax
mov eax, dword [ebp - 0x690]
call eax
sub esp, 0xc
test eax, eax
jne 0x405fe0
mov eax, dword [0x41d670]
lea esi, [ebp - 0x680]
mov dword [ebp - 0x67c], 0x200
mov dword [esp + 8], esi
mov dword [ebp - 0x650], eax
mov eax, dword [ebp - 0x684]
mov dword [esp + 4], str.InProcServer32
mov dword [esp], eax
mov eax, dword [ebp - 0x690]
call eax
lea ecx, [ebp - 0x67c]
sub esp, 0xc
test eax, eax
je 0x4061b8
lea eax, [ebp - 0x40c]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x694], eax
mov eax, dword [ebp - 0x694]
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x67c], 0x200
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x684]
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
mov edx, eax
sub esp, 0x10
mov eax, ebx
test edx, edx
jne 0x4060df
mov eax, dword [ebp - 0x694]
cmp word [ebp - 0x40c], 0
cmove eax, ebx
mov dword [ebp - 0x638], eax
mov eax, dword [sym.imp.ucrtbase.dll_calloc]
mov dword [esp + 4], 0x60c
mov dword [esp], 1
mov dword [ebp - 0x694], eax
call eax
mov byte [eax], 6
mov edx, eax
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x406110
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x406128
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x624], edx
test eax, eax
je 0x406173
lea eax, [ebp - 0x650]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call edi
sub esp, 0x10
mov eax, dword [ebp - 0x684]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Implemented_Categories
mov dword [esp], eax
mov eax, dword [ebp - 0x690]
call eax
sub esp, 0xc
test eax, eax
je 0x4062b0
mov eax, dword [ebp - 0x684]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405fe0
lea eax, [ebp - 0x40c]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x694], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x680]
mov dword [ebp - 0x69c], ecx
mov dword [ebp - 0x698], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x69c]
sub esp, 0x10
test eax, eax
jne 0x406278
cmp word [ebp - 0x40c], 0
je 0x406278
mov eax, dword [ebp - 0x694]
mov dword [esp + 8], 0x12
mov dword [esp + 4], str.ole32.dll
mov dword [esp], eax
call sym._memcmp
mov edx, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x69c]
test eax, eax
je 0x40626a
mov eax, dword [ebp - 0x694]
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.oleaut32.dll
mov dword [esp], eax
call sym._memcmp
mov edx, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x69c]
test eax, eax
jne 0x406278
mov eax, dword [0x41d66c]
mov dword [ebp - 0x650], eax
lea esi, [esi]
mov eax, dword [ebp - 0x680]
mov dword [ebp - 0x69c], ecx
mov dword [ebp - 0x698], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x69c]
mov edx, dword [ebp - 0x698]
sub esp, 4
jmp 0x406098
lea eax, [ebp - 0x20c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x680]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x406460
mov eax, dword [ebp - 0x680]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d664]
sub esp, 4
test eax, eax
je 0x4064c6
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
jmp 0x406324
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov eax, dword [0x41d030]
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call edi
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x40619b
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x678]
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
je 0x40619b
mov eax, dword [ebp - 0x654]
test eax, eax
je 0x406318
lea edx, [ebp - 0x20c]
add eax, 2
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x406318
mov dword [ebp - 0x650], esi
lea esi, [ebp - 0x600]
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov dword [ebx], 0x4c0043
mov eax, dword [ebp - 0x694]
mov dword [ebx + 4], 0x490053
mov dword [ebx + 8], 0x5c0044
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call eax
mov byte [eax], 7
mov edx, eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x406400
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x406418
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call edi
sub esp, 0x10
jmp 0x40619b
mov eax, dword [ebp - 0x688]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d66c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call edi
mov eax, dword [0x41d670]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call edi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0xffff0000
jmp 0x406307