Function at 0x4062a0
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 0x406421
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 0x406510
mov dword [0x410024], 0xffffffff
push 0
push 0
push 0x1009
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x28]
lea esi, [ebp - 0x6c]
push 0
push 0
push eax
push ecx
push edx
push 0
push esi
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
xor edx, edx
mov ecx, 0
test eax, eax
jne 0x406510
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 0x4063a4
push 0xffffffffffffffff
push 0
push 0
push 1
push 0
push dword [ebp + 8]
call sym._AddEntryToList
add esp, 0x18
cmp dword [ebp - 0x28], 0
je 0x406428
xor ebx, ebx
mov esi, dword [ebp - 0x10]
jmp 0x4063d9
push 0xffffffffffffffff
push eax
push edi
push dword [ebp - 0x1c]
push ecx
push dword [ebp + 8]
call sym._AddEntryToList
add esp, 0x18
inc ebx
cmp ebx, dword [ebp - 0x28]
jae 0x406428
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 0x406509
mov eax, dword [ebp - 0x18]
mov byte [edi + eax], 0
xor ecx, ecx
cmp word [esi], 0
je 0x4063c0
mov ecx, esi
jmp 0x4063c0
xor eax, eax
jmp 0x406545
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
test eax, eax
mov ebx, dword [ebp + 8]
jne 0x4064bb
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x5c], 1
lea eax, [ebp - 0x68]
push eax
push 0
push 0x102b
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
push sym._CompareFunc_12
push ebx
push 0x1030
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
mov dword [0x411018], eax
mov eax, dword [0x410df8]
mov edx, 1
mov esi, dword [ebp + 0x10]
cmp eax, esi
je 0x406504
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 [0x410df8], eax
mov ecx, dword [ebp - 0x10]
jmp 0x406510
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 0x406542
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