Function at 0x40d1a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
mov ebx, 0x7f02
sub esp, 0x9c
mov dword [esp + 4], ebx
mov dword [esp], 0
mov dword [ebp - 0x5c], edx
mov dword [0x416d60], ecx
call sym._LoadCursorW_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
mov dword [ebp - 0x68], eax
sub esp, 4
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0xb
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
lea eax, [ebp - 0x50]
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._GetItemPath
mov dword [ebp - 0x60], eax
test eax, eax
je 0x40d288
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
cmp word [ecx], 0
jne 0x40d4d0
mov dword [ebp - 0x4c], eax
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x54]
xor edi, edi
mov dword [esp + 0x2c], ebx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x58]
mov dword [esp + 0x28], edi
xor edi, edi
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
sub esp, 0x30
test eax, eax
je 0x40d340
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov edx, 0x113f
mov edi, 1
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x38], 0x40
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._SendMessageW_16
xor ecx, ecx
mov eax, 0xb
sub esp, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x68]
sub esp, 0x10
mov dword [esp], eax
call sym._SetCursor_4
mov ecx, dword [ebp - 0x60]
xor edx, edx
xor eax, eax
mov dword [0x416d60], eax
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
add eax, eax
mov dword [esp], eax
call sym._heap_xalloc
mov ecx, dword [ebp - 0x58]
test ecx, ecx
mov edi, eax
je 0x40d480
lea eax, [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x64], eax
jmp 0x40d39a
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x5c]
mov ecx, edi
mov dword [esp], 0
mov eax, esi
call sym._AddEntryToTree
inc ebx
cmp ebx, dword [ebp - 0x58]
jae 0x40d490
mov eax, dword [ebp - 0x54]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegEnumKeyExW_32
sub esp, 0x20
test eax, eax
jne 0x40d390
mov dword [esp + 4], edi
lea eax, [ebp - 0x48]
mov dword [esp + 0x10], eax
mov eax, 1
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x40d370
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
sub esp, 0x30
mov dword [esp], eax
call sym._RegCloseKey_4
mov edx, dword [ebp - 0x6c]
sub esp, 4
test edx, edx
jne 0x40d370
mov eax, dword [ebp - 0x40]
jmp 0x40d379
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._RegCloseKey_4
xor edx, edx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x40d294
mov dword [esp + 4], ecx
lea edx, [ebp - 0x4c]
mov edi, 0x20019
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x40d288
mov eax, dword [ebp - 0x4c]
jmp 0x40d231