Function at 0x401000
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x31c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x318], eax
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40104d
xor eax, eax
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00401346
add esp, 0x31c
ret 0x10
push ebx
push ebp
push esi
push edi
mov esi, 0x100
push esi
lea ecx, [esp + 0x22c]
push 0
push ecx
call fcn.00401360
mov eax, dword [esp + 0x20]
add esp, 0xc
push esi
lea edx, [esp + 0x22c]
push edx
push 0
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401283
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x234]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012ae
push esi
push eax
lea ecx, [esp + 0x130]
push ecx
mov dword [esp + 0x28], esi
call fcn.00401360
push esi
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esp + 0x30], esi
call fcn.00401360
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x13c]
push eax
push ebx
push ecx
call ebp
test eax, eax
jne 0x40123d
mov edi, edi
mov edi, str.DriverDesc
lea esi, [esp + 0x128]
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4011e2
lea eax, [esp + 0x28]
push str.EHCI
push eax
call fcn.004012c0
add esp, 8
test eax, eax
jne 0x401183
lea ecx, [esp + 0x28]
push str.Enhanced
push ecx
call fcn.004012c0
add esp, 8
test eax, eax
jne 0x401183
lea edx, [esp + 0x28]
push str.UHCI
push edx
call fcn.004012c0
add esp, 8
test eax, eax
jne 0x401183
lea eax, [esp + 0x28]
push str.Universal
push eax
call fcn.004012c0
add esp, 8
test eax, eax
je 0x4011e2
mov eax, dword [esp + 0x338]
mov edi, 0x40815c
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4011d2
mov esi, eax
mov edi, 0x408158
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4011d2
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push eax
push str.ForceHCResetOnResume
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4011e2
mov eax, dword [esp + 0x10]
push str.ForceHCResetOnResume
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, 0x100
push esi
lea ecx, [esp + 0x12c]
push 0
push ecx
add ebx, 1
call fcn.00401360
push esi
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00401360
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x13c]
push eax
push ebx
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call ebp
test eax, eax
je 0x401110
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
push esi
lea eax, [esp + 0x22c]
push 0
add edi, 1
push eax
mov dword [esp + 0x2c], edi
call fcn.00401360
mov edx, dword [esp + 0x20]
add esp, 0xc
push esi
lea ecx, [esp + 0x22c]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401095
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401346
add esp, 0x31c
ret 0x10
xor eax, eax
jmp 0x401293