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

Disassembly:
push edi
xor eax, eax
mov edx, 0x25005c
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, 0x730025
movdqu xmm0, xmmword [str.___s__s__n_s____x]
mov dword [ebp - 0xa88], eax
mov eax, dword [0x41d678]
mov dword [ebp - 0xa84], edx
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa9c]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0xa80], 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 - 0xaa4], eax
movups xmmword [ebp - 0xa78], xmm0
call eax
sub esp, 0xc
test eax, eax
jne 0x405353
mov dword [ebp - 0xaa8], 0xffffffff
lea ebx, [ebp - 0x818]
lea esi, [esi]
add dword [ebp - 0xaa8], 1
mov eax, dword [ebp - 0xaa8]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa9c]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405317
lea eax, [ebp - 0xa98]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa9c]
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
call eax
sub esp, 0xc
test eax, eax
jne 0x4050d0
mov dword [ebp - 0xaa0], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 0xaa0], 1
mov eax, dword [ebp - 0xaa0]
lea esi, [ebp - 0xa18]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405300
lea eax, [ebp - 0xa94]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
call eax
sub esp, 0xc
test eax, eax
jne 0x405140
lea eax, [ebp - 0xa8c]
lea esi, [ebp - 0x618]
mov dword [ebp - 0xa8c], 0x200
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa94]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
jne 0x4051ef
cmp word [ebp - 0x618], 0
jne 0x40535f
lea eax, [ebp - 0xa18]
lea edx, [ebp - 0x418]
mov dword [ebp - 0xa44], eax
mov eax, dword [sym.imp.user32.dll_wsprintfW]
lea esi, [ebp - 0x218]
mov dword [ebp - 0xab0], eax
mov eax, dword [ebp - 0xa94]
mov dword [ebp - 0xaac], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaac]
lea eax, [ebp - 0xa18]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xa88]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xab0]
mov dword [esp + 8], ebx
call eax
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0xaac]
mov byte [eax], 2
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edi, word [edx + eax]
mov word [ecx + eax + 2], di
add eax, 2
test di, di
jne 0x405278
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x405290
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 0x402], dx
add eax, 2
test dx, dx
jne 0x4052b0
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0xa30], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405140
mov eax, dword [ebp - 0xa98]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4050d0
mov eax, dword [ebp - 0xa9c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d678]
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 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 [0x41d03c]
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edx
mov dword [ebp - 0xaac], edx
mov dword [esp + 4], 0xdd
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0xaac]
mov eax, esi
sub esp, 0x10
cmp word [ebp - 0x618], 0
je 0x4053b1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4053a8
mov dword [esp], eax
lea ecx, [ebp - 0xa18]
mov eax, dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0xa78]
mov dword [esp + 8], edx
mov dword [ebp - 0xaac], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0xab0], eax
call eax
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xa44], esi
lea esi, [ebp - 0x218]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa94]
mov dword [ebp - 0xa8c], 0x100
mov dword [esp], eax
mov eax, dword [ebp - 0xaa4]
mov dword [esp + 4], str.0win32
call eax
lea eax, [ebp - 0xa8c]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa90]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0xa90]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaac]
sub esp, 4
jmp 0x405212