Function at 0x40cdc0
Capabilities:
Query or enumerate registry key

Disassembly:
and ecx, 0x40
je 0x40cdd0
mov eax, 1
ret
push ebp
mov ebp, edx
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x9c
mov dword [0x414dec], 1
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call dword [0x4156b0]
sub esp, 8
mov dword [esp], eax
mov eax, dword [0x41570c]
mov dword [esp + 0x38], eax
call eax
sub esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [0x4156fc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], esi
mov dword [esp + 0x3c], eax
call eax
sub esp, 0x10
lea eax, [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0040cd00
mov dword [esp + 0x30], eax
test eax, eax
je 0x40cee5
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
cmp word [edi], 0
jne 0x40d140
mov dword [esp + 0x5c], eax
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
lea edx, [esp + 0x54]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x50]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x40], eax
call eax
sub esp, 0x30
test eax, eax
je 0x40cf88
mov ebx, dword [sym.imp.ucrtbase.dll_free]
lea ecx, [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov edx, 0x40
mov eax, 0x40
mov dword [esp], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], eax
mov eax, edi
mov dword [esp + 0x68], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113f
call eax
mov eax, edi
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb
call eax
sub esp, 0x10
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
mov dword [0x414dec], 0
sub esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call ebx
add esp, 0x9c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x54]
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [esp + 0x50]
mov edi, eax
test edx, edx
mov edx, dword [esp + 0x44]
je 0x40d180
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
jmp 0x40d001
mov dword [esp + 0x68], 0
xor eax, eax
mov dword [esp + 4], eax
mov ecx, edi
mov edx, ebp
mov eax, esi
mov dword [esp], 0
call fcn.0040c7f0
add ebx, 1
cmp ebx, dword [esp + 0x50]
jae 0x40d110
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x64]
mov dword [esp + 0x64], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40cff0
lea eax, [esp + 0x60]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x40cfd0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call eax
sub esp, 0x30
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
call ecx
sub esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40cfd0
mov eax, dword [esp + 0x68]
jmp 0x40cfda
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x44]
mov dword [esp], edx
call eax
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 4
mov dword [esp], edi
call ebx
mov ecx, dword [esp + 0x40]
jmp 0x40ceef
lea edx, [esp + 0x5c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x40cee5
mov eax, dword [esp + 0x5c]
jmp 0x40ce74
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], eax
jmp 0x40d114