Function at 0x412bf0
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a2915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x954
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], ebx
push edi
mov dword [esp + 0x30], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, 0x400
mov eax, 1
mov ebp, 0xf
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x96c], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x970], 2
mov dword [esp + 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xd8], 2
lea ecx, [esp + 0x74]
jae 0x412cb0
push 8
push str.EnumPCI
call fcn.00401920
push 0x28
push str.SystemCurrentControlSetServicesClass_
jmp 0x412cc3
push 0x21
push str.SYSTEMCurrentControlSetEnumPCI
call fcn.00401920
push 0x27
push str.SystemCurrentControlSetControlClass_
lea ecx, [esp + 0x60]
call fcn.00401920
mov eax, dword [esp + 0x78]
mov edi, 0x10
cmp dword [esp + 0x8c], edi
jae 0x412ce2
lea eax, [esp + 0x78]
lea ecx, [esp + 0x1c]
push ecx
push 8
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413129
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x574]
push eax
push ebx
push ecx
call esi
test eax, eax
jne 0x41311a
jmp 0x412d30
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x2c], 1
lea edx, [esp + 0x24]
push edx
push 8
push ebx
lea eax, [esp + 0x56c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4130e4
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x170]
push eax
push ebx
push ecx
call esi
test eax, eax
jne 0x4130d9
lea esp, [esp]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x14], 1
lea edx, [esp + 0x20]
push edx
push 1
push ebx
lea eax, [esp + 0x168]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4130ac
mov edx, dword [esp + 0x20]
push str.Class
lea ecx, [esp + 0x40]
call fcn.00411ad0
mov esi, dword [eax + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x412dc3
cmp esi, 3
mov ecx, esi
jb 0x412dcf
mov ecx, 3
cmp dword [eax + 0x18], edi
jb 0x412dd9
mov eax, dword [eax + 4]
jmp 0x412ddc
add eax, 4
push ecx
push 0x4b237c
push eax
call fcn.004054a0
add esp, 0xc
cmp eax, ebx
jne 0x412e03
cmp esi, 3
jae 0x412df9
or eax, 0xffffffff
jmp 0x412e01
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete byte [esp + 0x13]
cmp dword [esp + 0x54], edi
mov byte [esp + 0x96c], 2
jb 0x412e23
mov edx, dword [esp + 0x40]
push edx
call fcn.00409f10
add esp, 4
cmp byte [esp + 0x13], bl
je 0x41309b
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov edx, dword [esp + 0x20]
push str.DeviceDesc
lea ecx, [esp + 0x40]
mov byte [esp + 0x970], 4
call fcn.00411ad0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x978], 5
call fcn.00401840
cmp dword [esp + 0x54], edi
mov byte [esp + 0x96c], 4
jb 0x412eb9
mov eax, dword [esp + 0x40]
push eax
call fcn.00409f10
add esp, 4
mov edx, dword [esp + 0x20]
push str.Driver
lea ecx, [esp + 0x40]
call fcn.00411ad0
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x978], 6
call fcn.0040ba40
add esp, 0xc
cmp dword [esp + 0x54], edi
mov byte [esp + 0x96c], 8
jb 0x412f04
mov eax, dword [esp + 0x40]
push eax
call fcn.00409f10
add esp, 4
cmp dword [esp + 0xa8], edi
mov eax, dword [esp + 0x94]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jae 0x412f27
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
push 1
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412fdf
mov edx, dword [esp + 0x34]
push 0x4b1fc0
lea ecx, [esp + 0xb0]
call fcn.00411ad0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf0]
mov byte [esp + 0x978], 9
call fcn.00401840
cmp dword [esp + 0xc4], edi
mov byte [esp + 0x96c], 8
jb 0x412f91
mov edx, dword [esp + 0xb0]
push edx
call fcn.00409f10
add esp, 4
mov edx, dword [esp + 0x34]
push str.DriverVersion
lea ecx, [esp + 0xb0]
call fcn.00411ad0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x10c]
mov byte [esp + 0x978], 0xa
call fcn.00401840
cmp dword [esp + 0xc4], edi
mov byte [esp + 0x96c], 8
jb 0x412fdf
mov eax, dword [esp + 0xb0]
push eax
call fcn.00409f10
add esp, 4
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00412b40
cmp dword [esp + 0xa8], edi
jb 0x413009
mov edx, dword [esp + 0x94]
push edx
call fcn.00409f10
add esp, 4
cmp dword [esp + 0x118], edi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x96c], 2
jb 0x41303f
mov eax, dword [esp + 0x104]
push eax
call fcn.00409f10
add esp, 4
cmp dword [esp + 0xfc], edi
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
jb 0x41306d
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.00409f10
add esp, 4
cmp dword [esp + 0xe0], edi
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jb 0x41309b
mov edx, dword [esp + 0xcc]
push edx
call fcn.00409f10
add esp, 4
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x170]
push edx
push eax
push ecx
mov dword [esp + 0x38], 0x400
call esi
test eax, eax
je 0x412d80
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
mov eax, 0x400
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x574]
push ecx
push edx
push eax
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x412d30
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x70], edi
jb 0x41313c
mov edx, dword [esp + 0x5c]
push edx
call fcn.00409f10
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x41315e
mov eax, dword [esp + 0x78]
push eax
call fcn.00409f10
add esp, 4
mov ecx, dword [esp + 0x964]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x960
ret