Function at 0x40cca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
lea eax, [ebp - 0x840]
push ebx
lea ebx, [ebp - 0x818]
sub esp, 0x8bc
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x840], 1
mov dword [ebp - 0x83c], edx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x82c], 0x400
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], esi
call dword [0x417714]
sub esp, 0x10
test eax, eax
je 0x40cd12
test byte [ebp + 8], 2
jne 0x40cd20
test byte [ebp + 8], 0xc
jne 0x40cd56
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x86c]
test byte [ebp + 8], 1
mov dword [esp], ebx
mov dword [esp + 4], eax
jne 0x40cfa0
call dword [0x417538]
xor ebx, ebx
sub esp, 8
test eax, eax
setne bl
test ebx, ebx
je 0x40cd0c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
jmp 0x40cd14
lea eax, [ebp - 0x858]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sym._GetItemPath
mov esi, eax
test eax, eax
je 0x40cd12
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x40cd12
lea edx, [ebp - 0x85c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov dword [esp], esi
test eax, eax
jne 0x40d120
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x87c], eax
call eax
lea eax, [ebp - 0x84c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x850]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov ebx, eax
test eax, eax
jne 0x40cd12
mov eax, dword [ebp - 0x850]
inc eax
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x854], eax
add eax, eax
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x888], eax
call eax
mov dword [esp + 0x1c], 0
mov edi, eax
lea eax, [ebp - 0x854]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegEnumValueW]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [ebp - 0x884], eax
call eax
mov dword [ebp - 0x880], 0
sub esp, 0x20
test eax, eax
jne 0x40cec9
xor eax, eax
cmp word [edi], 0
setne al
mov dword [ebp - 0x880], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88c], ebx
mov dword [ebp - 0x874], 0
mov ebx, dword [ebp - 0x884]
mov eax, dword [eax]
mov esi, eax
mov eax, 0
sub esi, dword [ebp - 0x880]
cmovs esi, eax
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x870], eax
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x878], eax
lea esi, [esi]
mov eax, dword [ebp - 0x850]
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x844]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x854]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x844], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 0x20
test eax, eax
jne 0x40d158
mov eax, dword [ebp - 0x870]
test eax, eax
jne 0x40d0a8
test byte [ebp + 8], 8
je 0x40cf9a
mov eax, dword [ebp - 0x844]
dec eax
cmp eax, 1
jbe 0x40cfb8
inc esi
jmp 0x40cf10
call dword [sym.imp.kernel32.dll_lstrcmpiW]
xor ebx, ebx
sub esp, 8
test eax, eax
sete bl
jmp 0x40cd47
mov edx, dword [ebp - 0x874]
mov ecx, dword [ebp - 0x84c]
test edx, edx
je 0x40d130
mov eax, dword [ebp - 0x850]
mov dword [ebp - 0x848], ecx
lea edx, [ebp - 0x844]
lea ecx, [ebp - 0x854]
mov dword [esp + 0x14], edx
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x848]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x874]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 0x20
test eax, eax
jne 0x40d158
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x40d0f0
mov ecx, dword [ebp - 0x86c]
mov eax, dword [ebp - 0x874]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x40cf9a
mov dword [esp], edi
mov edi, dword [ebp - 0x87c]
mov ebx, 1
call edi
mov eax, dword [ebp - 0x874]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add esi, dword [ebp - 0x880]
sub esp, 4
mov dword [eax], esi
jmp 0x40cd14
mov ecx, dword [ebp - 0x878]
mov eax, dword [ebp - 0x86c]
mov dword [esp], edi
test ecx, ecx
mov dword [esp + 4], eax
je 0x40d0d8
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40cf88
jmp 0x40d066
call dword [0x417538]
sub esp, 8
test eax, eax
je 0x40cf88
jmp 0x40d066
mov eax, dword [ebp - 0x86c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x874]
mov dword [esp], eax
call dword [0x417538]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x40d05e
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40cd12
mov dword [esp], ecx
mov eax, dword [ebp - 0x888]
mov dword [ebp - 0x884], ecx
call eax
mov ecx, dword [ebp - 0x884]
mov dword [ebp - 0x874], eax
jmp 0x40cfcc
mov dword [esp], edi
mov ebx, dword [ebp - 0x88c]
mov edi, dword [ebp - 0x87c]
call edi
mov eax, dword [ebp - 0x874]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40cd14