Function at 0x4061d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x40640e
push 0
push 0
push 0xb
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor edx, edx
mov ecx, 0
mov edi, 0
test eax, eax
jne 0x406419
mov dword [0x411024], 0xffffffff
push 0
push 0
push 0x1009
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
sub esp, 0x30
lea ecx, [ebp - 0x20]
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x24]
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x30]
mov dword [esp + 0x14], ecx
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
xor edx, edx
mov ecx, 0
test eax, eax
jne 0x406419
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 1]
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x20], ebx
lea eax, [eax*2 + 2]
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
push eax
call edi
add esp, 4
mov dword [ebp - 0x10], eax
push ebx
call edi
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x406308
sub esp, 0x18
movaps xmm0, xmmword [0x40d990]
movups xmmword [esp + 4], xmm0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 0x14], 0xffffffff
call dbg.AddEntryToList
add esp, 0x18
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x10]
je 0x406383
xor ebx, ebx
nop word cs:[eax + eax]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
test eax, eax
jne 0x406412
mov eax, dword [ebp - 0x18]
cmp word [esi], 0
mov byte [edi + eax], 0
mov ecx, esi
mov edx, 0
cmove ecx, edx
push 0xffffffffffffffff
push eax
push edi
push dword [ebp - 0x1c]
push ecx
push dword [ebp + 8]
call dbg.AddEntryToList
add esp, 0x18
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x406320
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x6c], xmm0
test eax, eax
mov ebx, dword [ebp + 8]
jne 0x4063c0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x60], 1
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x102b
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
push dbg._CompareFunc@12
push ebx
push 0x1030
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
mov dword [0x412018], eax
mov eax, dword [0x411df8]
mov edx, 1
mov esi, dword [ebp + 0x10]
cmp eax, esi
je 0x406409
push eax
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, 1
add esp, 4
mov dword [0x411df8], eax
mov ecx, dword [ebp - 0x10]
jmp 0x406419
xor eax, eax
jmp 0x40644e
mov ebx, dword [ebp + 8]
mov ecx, esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov esi, dword [sym.imp.ucrtbase.dll_free]
push edi
mov edi, ecx
call esi
add esp, 4
push edi
call esi
add esp, 4
push 0
push 1
push 0xb
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40644b
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret