Function at 0x409b60
Capabilities:
Query or enumerate registry key

Disassembly:
xor eax, eax
cmp byte [0x4121ac], 0
jne 0x409cc5
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, 1
test cl, 0x40
jne 0x409cbe
mov edi, edx
mov byte [global_expanding], 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 esi
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x1c], 0x400
mov ebx, edi
test edi, edi
jne 0x409be6
push 0
push 9
push 0x110a
push esi
call dword [sym.imp.user32.dll_SendMessageW]
mov ebx, eax
test eax, eax
je 0x409c68
push 0x800
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409c68
mov dword [ebp - 0x10], edi
mov word [eax], 0
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x7c]
mov ecx, esi
mov edx, ebx
push eax
push edi
lea edi, [ebp - 0x18]
push edi
lea eax, [ebp - 0x38]
push eax
call dbg.get_item_path
add esp, 0x10
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x409c5b
test ebx, ebx
je 0x409cc6
cmp word [ebx], 0
mov eax, dword [ebp - 0x38]
je 0x409ccd
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push ebx
push eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409d1b
mov eax, dword [ebp - 0x14]
jmp 0x409cd0
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov edi, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], edi
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
push esi
call edi
push 0
push 1
push 0xb
push esi
call edi
push dword [ebp - 0x30]
call dword [sym.imp.user32.dll_SetCursor]
mov byte [global_expanding], 0
push ebx
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
xor ebx, ebx
mov edi, dword [ebp - 0x10]
jmp 0x409c6a
mov dword [ebp - 0x14], eax
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], edi
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x409d23
mov edi, dword [ebp - 0x10]
jmp 0x409c6a
mov dword [ebp - 0x28], ebx
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 0x409e75
xor edi, edi
jmp 0x409d5a
inc edi
cmp edi, dword [ebp - 0x1c]
jae 0x409e75
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea ecx, [ebp - 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409d50
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409e00
mov eax, dword [ebp - 0x24]
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 0
je 0x409e70
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x74], 0x67
mov dword [ebp - 0x64], ebx
mov ecx, 0xfffffffe
nop dword [eax + eax]
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x409e20
sar ecx, 1
mov dword [ebp - 0x60], ecx
mov ecx, dword [0x4121a4]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [0x4121a0]
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 esi
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x409d50
mov eax, dword [ebp - 0x20]
jmp 0x409e09
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
jmp 0x409c6a