Function at 0x409c90
Capabilities:
Query or enumerate registry key

Disassembly:
xor eax, eax
cmp byte [0x4111ac], 0
jne 0x409f5e
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, 1
test cl, 0x40
jne 0x409f57
mov ebx, edx
mov byte [0x4111ac], 1
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x30], eax
push 0
push 0
push 0xb
push edi
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x1c], 0x400
mov eax, ebx
mov dword [ebp - 0x10], ebx
test ebx, ebx
mov dword [ebp - 0x24], edi
jne 0x409d18
push 0
push 9
push 0x110a
push edi
call dword [sym.imp.user32.dll_SendMessageW]
mov ebx, eax
test eax, eax
je 0x409d94
push 0x800
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409d94
mov word [eax], 0
lea esi, [ebp - 0x1c]
lea eax, [ebp - 0x7c]
mov ecx, edi
lea edi, [ebp - 0x18]
mov edx, ebx
push esi
push eax
mov esi, edi
push edi
lea eax, [ebp - 0x38]
push eax
call sym._get_item_path
add esp, 0x10
mov edx, dword [ebp - 0x18]
test eax, eax
je 0x409d8a
test edx, edx
je 0x409d94
cmp word [edx], 0
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
je 0x409d9e
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409efd
mov eax, dword [ebp - 0x14]
jmp 0x409da1
push edx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
xor esi, esi
mov ebx, dword [ebp - 0x10]
jmp 0x409f00
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x409efd
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x1c], 0
je 0x409ee7
xor edi, edi
jmp 0x409e0a
inc edi
cmp edi, dword [ebp - 0x1c]
jae 0x409ee7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409e00
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409e71
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
je 0x409ee2
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x74], 0x67
mov dword [ebp - 0x64], ebx
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x409e90
sar ecx, 1
mov dword [ebp - 0x60], ecx
mov ecx, dword [0x4111a4]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [0x4111a0]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x78], 0xffff0003
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x1132
push dword [ebp - 0x24]
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x409e00
mov eax, dword [ebp - 0x28]
jmp 0x409e7a
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x74], 0x40
lea eax, [ebp - 0x7c]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push eax
push 0
push 0x113f
mov ebx, dword [ebp - 0x24]
push ebx
call edi
push 0
push 1
push 0xb
push ebx
call edi
push dword [ebp - 0x30]
call dword [sym.imp.user32.dll_SetCursor]
mov byte [0x4111ac], 0
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, 1
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret