Function at 0x40c350
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x45567a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push edi
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x148], ebp
mov eax, dword [0x471df4]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xd64]
mov byte [esp + 0x148], 6
cmp eax, ebp
je 0x40c3af
push str.SystemCurrentControlSetEnum_
jmp 0x40c3b4
push str.Enum_
lea ecx, [esp + 0x20]
call fcn.0044a511
lea eax, [esp + 0x150]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 7
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 6
call fcn.0044a3d4
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebp
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x40c70a
mov eax, dword [esp + 0x24]
push esi
lea edx, [esp + 0x40]
push 0x104
push edx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push eax
mov esi, 1
call ebp
test eax, eax
jne 0x40c6fe
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call fcn.0044a511
lea ecx, [esp + 0x10]
call fcn.0044a88a
mov edx, dword [esp + 0x158]
lea ecx, [esp + 0x10]
push edx
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40c48d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x40]
mov eax, esi
push 0x104
push ecx
push eax
push edx
inc esi
call ebp
test eax, eax
je 0x40c442
jmp 0x40c6fe
mov eax, dword [ebx + 0xd64]
test eax, eax
je 0x40c6f6
lea eax, [esp + 0x40]
lea ecx, [esp + 0x38]
push eax
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x34]
mov byte [esp + 0x150], 8
call fcn.0044a442
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov byte [esp + 0x158], 9
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x20]
mov bl, 0xa
push eax
mov byte [esp + 0x158], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 0xb
call fcn.0044a4c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 8
call fcn.0044a3d4
lea ecx, [esp + 0x38]
mov byte [esp + 0x14c], 6
call fcn.0044a3d4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x40c6fe
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
push ecx
mov edi, 1
call ebp
test eax, eax
jne 0x40c6e9
mov bl, 0xe
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
push edx
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x30]
mov byte [esp + 0x150], 0xc
call fcn.0044a442
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x158], 0xd
call fcn.0044a5b7
push esi
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x158], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 0xf
call fcn.0044a4c1
lea ecx, [esp + 0x38]
mov byte [esp + 0x14c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 0xd
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 6
call fcn.0044a3d4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0x104
push eax
push str.ConfigFlags
push ecx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x40c6cc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x104
push edx
push str.Driver
push eax
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x40c6cc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.Class
push edx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x40c6cc
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a511
lea ecx, [esp + 0x10]
call fcn.0044a88a
push str.UNKNOWN
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40c6cc
mov dword [esp + 0x3c], 1
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x40]
mov eax, edi
push 0x104
push ecx
push eax
push edx
inc edi
call ebp
test eax, eax
je 0x40c585
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c6fe
mov dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 5
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 3
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 2
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 1
call fcn.0044a3d4
lea ecx, [esp + 0x150]
mov byte [esp + 0x148], 0
call fcn.0044a3d4
lea ecx, [esp + 0x154]
mov dword [esp + 0x148], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x38]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 8