Function at 0x40cdc0
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, 0x890
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 [0x4166fc]
sub esp, 0x10
test eax, eax
je 0x40ce32
test byte [ebp + 8], 2
jne 0x40ce40
test byte [ebp + 8], 0xc
jne 0x40ce80
xor eax, eax
lea esp, [ebp - 0xc]
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 0x40d130
call dword [0x41651c]
sub esp, 8
test eax, eax
setne al
movzx eax, al
test eax, eax
je 0x40ce2c
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x40ce34
lea eax, [ebp - 0x84c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call fcn.0040c960
mov ebx, eax
test eax, eax
je 0x40ce32
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x40ce32
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 0x40d250
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x860], eax
call eax
lea eax, [ebp - 0x840]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x844]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
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 eax, dword [ebp - 0x850]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
mov dword [ebp - 0x85c], eax
jne 0x40ce32
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 - 0x864], eax
call eax
mov dword [esp + 0x1c], 0
mov ebx, eax
mov dword [esp + 0x18], 0
lea eax, [ebp - 0x848]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegEnumValueW]
mov dword [ebp - 0x858], eax
call eax
mov ecx, dword [ebp - 0x85c]
sub esp, 0x20
test eax, eax
jne 0x40cfef
xor ecx, ecx
cmp word [ebx], 0
setne cl
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x85c], 0
mov edi, dword [ebp + 8]
mov esi, dword [eax]
mov eax, 0
sub esi, ecx
cmovs esi, eax
jmp 0x40d035
test edi, 8
je 0x40d032
mov eax, dword [ebp - 0x838]
sub eax, 1
cmp eax, 1
jbe 0x40d150
add esi, 1
mov dword [ebp - 0x83c], 0
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x838]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x848]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
mov eax, dword [ebp - 0x858]
call eax
sub esp, 0x20
test eax, eax
jne 0x40d288
test edi, 4
je 0x40d018
mov eax, dword [ebp - 0x854]
mov dword [esp], ebx
mov dword [esp + 4], eax
test edi, 1
je 0x40d208
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40d018
lea esi, cs:[esi]
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x854], ecx
mov dword [esp], ebx
mov ebx, dword [ebp - 0x860]
call ebx
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x854]
mov eax, dword [ebp + 0xc]
sub esp, 4
lea edx, [esi + ecx]
mov dword [eax], edx
mov eax, 1
jmp 0x40ce34
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x40ce68
mov eax, dword [ebp - 0x85c]
mov edx, dword [ebp - 0x840]
test eax, eax
je 0x40d260
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x83c], edx
lea ecx, [ebp - 0x838]
lea edx, [ebp - 0x848]
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x83c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
mov ecx, dword [ebp - 0x858]
call ecx
sub esp, 0x20
test eax, eax
jne 0x40d288
test edi, 1
je 0x40d220
mov ecx, dword [ebp - 0x854]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x85c]
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 0x40d032
jmp 0x40d0e0
call dword [0x41651c]
sub esp, 8
test eax, eax
je 0x40d018
jmp 0x40d0e0
mov eax, dword [ebp - 0x854]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call dword [0x41651c]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x40d1f6
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40ce32
mov dword [esp], edx
mov eax, dword [ebp - 0x864]
mov dword [ebp - 0x868], edx
call eax
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x85c], eax
jmp 0x40d164
mov dword [esp], ebx
mov edi, dword [ebp - 0x860]
call edi
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x850]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40ce32