Function at 0x40cc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80c]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x834]
sub esp, 0x898
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x834], 1
mov dword [ebp - 0x830], edx
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x820], 0x400
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], ebx
call dword [0x41770c]
sub esp, 0x10
test eax, eax
je 0x40cce2
test byte [ebp + 8], 2
jne 0x40ccf0
test byte [ebp + 8], 0xc
jne 0x40cd29
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x854]
test byte [ebp + 8], 1
mov dword [esp], edi
mov dword [esp + 4], eax
jne 0x40cfe8
call dword [0x41752c]
sub esp, 8
test eax, eax
setne al
movzx eax, al
mov edi, eax
test edi, edi
je 0x40ccdc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
jmp 0x40cce4
lea eax, [ebp - 0x84c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call fcn.0040c820
mov ebx, eax
test eax, eax
je 0x40cce2
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x40cce2
lea edx, [ebp - 0x850]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov dword [esp], ebx
test eax, eax
jne 0x40d100
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x864], eax
call eax
lea eax, [ebp - 0x840]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x844]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x850]
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 edi, eax
test eax, eax
jne 0x40cce2
mov eax, dword [ebp - 0x844]
add eax, 1
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x848], eax
add eax, eax
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x870], eax
call eax
mov dword [esp + 0x1c], 0
mov esi, eax
lea eax, [ebp - 0x848]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x850]
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], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x86c], eax
call eax
mov dword [ebp - 0x868], 0
sub esp, 0x20
test eax, eax
jne 0x40ce9e
xor eax, eax
cmp word [esi], 0
setne al
mov dword [ebp - 0x868], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x874], edi
mov dword [ebp - 0x85c], 0
mov edi, dword [ebp - 0x86c]
mov eax, dword [eax]
mov ebx, eax
mov eax, 0
sub ebx, dword [ebp - 0x868]
cmovs ebx, eax
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x858], eax
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x860], eax
jmp 0x40cf03
test byte [ebp + 8], 8
je 0x40cf00
mov eax, dword [ebp - 0x838]
sub eax, 1
cmp eax, 1
jbe 0x40d000
add ebx, 1
mov eax, dword [ebp - 0x844]
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x838]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x848]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x850]
mov dword [ebp - 0x838], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
jne 0x40d138
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x40cee8
mov ecx, dword [ebp - 0x860]
mov eax, dword [ebp - 0x854]
mov dword [esp], esi
test ecx, ecx
mov dword [esp + 4], eax
je 0x40d0b0
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40cee8
mov dword [esp], esi
mov esi, dword [ebp - 0x864]
mov edi, 1
call esi
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add ebx, dword [ebp - 0x868]
sub esp, 4
mov dword [eax], ebx
jmp 0x40cce4
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x40cd1a
mov edx, dword [ebp - 0x85c]
mov ecx, dword [ebp - 0x840]
test edx, edx
je 0x40d110
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x83c], ecx
lea edx, [ebp - 0x838]
lea ecx, [ebp - 0x848]
mov dword [esp + 0x14], edx
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x83c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x850]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
jne 0x40d138
mov eax, dword [ebp - 0x860]
test eax, eax
je 0x40d0d0
mov ecx, dword [ebp - 0x854]
mov eax, dword [ebp - 0x85c]
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 0x40cf00
jmp 0x40cfa7
call dword [0x41752c]
sub esp, 8
test eax, eax
je 0x40cee8
jmp 0x40cfa7
mov eax, dword [ebp - 0x854]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call dword [0x41752c]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x40d0a2
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40cce2
mov dword [esp], ecx
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x86c], ecx
call eax
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x85c], eax
jmp 0x40d014
mov dword [esp], esi
mov edi, dword [ebp - 0x874]
mov esi, dword [ebp - 0x864]
call esi
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40cce4