Function at 0x412880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45654f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x471df4]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x164], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov ebp, dword [ecx + 0xb6c]
mov bl, 4
cmp ebp, esi
mov byte [esp + 0x164], bl
je 0x412bf4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
push eax
lea eax, [esp + 0x5c]
push str.SystemCurrentControlSetEnum_
push eax
call fcn.0044a691
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 5
call fcn.0044a4c1
lea ecx, [esp + 0x58]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x412beb
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
mov eax, esi
push 0x104
push ecx
inc esi
push eax
push edx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x412be0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x40]
push eax
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x40]
mov byte [esp + 0x16c], 6
call fcn.0044a442
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x174], 7
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x170], 8
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 9
call fcn.0044a4c1
lea ecx, [esp + 0x50]
mov byte [esp + 0x168], 8
call fcn.0044a3d4
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 7
call fcn.0044a3d4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x168], 6
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x412bb3
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0
push 0
push str.Class
push edx
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x412ba8
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x30]
push eax
call fcn.0044a511
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x5c]
push ecx
push edx
push 0
push 0
push str.Driver
push eax
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x412ba8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x58]
call fcn.0044a442
mov esi, eax
push str.SystemCurrentControlSetControlClass_
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 0xa
call fcn.0044a442
push esi
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x174], 0xb
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x16c], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x44]
mov byte [esp + 0x168], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x168], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x54]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x412ba8
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
lea eax, [esp + 0x5c]
push edx
push eax
push 0
push 0
push str.DriverVersion
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412b9d
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x10]
push edx
call fcn.0044a511
lea ecx, [esp + 0x10]
call fcn.0044a88a
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffd
push eax
push 0
call fcn.004490eb
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043a840
add esp, 4
cmp eax, 0x145
jae 0x412b9d
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x5c]
push 0x104
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x412961
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x4128e2
pop edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 3
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 2
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 1
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 0
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0x34]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret