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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1004fa70]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetEnumUSB
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x140]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100235f9
mov dword [ebp - 0xc], 0
mov edx, 1
test edx, edx
je 0x100235ef
mov dword [ebp - 8], 0x100
push 0x100
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.1002aa10
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x100235e8
lea edx, [ebp - 0x140]
push edx
call fcn.1002ae60
add esp, 4
add eax, 0x100
push eax
call fcn.1002b1c7
add esp, 4
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x140]
push eax
call fcn.1002ae60
add esp, 4
add eax, 0x100
push eax
push 0
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.1002aa10
add esp, 0xc
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x148]
push eax
call fcn.1002b3f0
add esp, 8
push 0x1004172c
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.1002b3f0
add esp, 8
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x148]
push eax
call fcn.1002b3f0
add esp, 8
lea ecx, [ebp - 0x14c]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x148]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100235cb
mov dword [ebp - 0x144], 0
mov eax, 1
test eax, eax
je 0x100235be
mov dword [ebp - 8], 0x100
push 0x100
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.1002aa10
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x100235b7
mov eax, dword [ebp - 0x148]
push eax
call fcn.1002ae60
add esp, 4
add eax, 0x100
push eax
call fcn.1002b1c7
add esp, 4
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.1002ae60
add esp, 4
add eax, 0x100
push eax
push 0
mov edx, dword [ebp - 0x154]
push edx
call fcn.1002aa10
add esp, 0xc
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.1002b3f0
add esp, 8
push 0x1004172c
mov edx, dword [ebp - 0x154]
push edx
call fcn.1002b3f0
add esp, 8
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.1002b3f0
add esp, 8
lea edx, [ebp - 0x150]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x154]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10023594
mov dword [ebp - 0x158], 7
push 0x100
push 0
lea ecx, [ebp - 0x258]
push ecx
call fcn.1002aa10
add esp, 0xc
mov dword [ebp - 8], 0x100
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x158]
push ecx
push 0
push str.Class
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023587
push str.HIDClass
lea eax, [ebp - 0x258]
push eax
call fcn.1002c388
add esp, 8
test eax, eax
jne 0x10023587
push 0x100
push 0
lea ecx, [ebp - 0x258]
push ecx
call fcn.1002aa10
add esp, 0xc
mov dword [ebp - 8], 0x100
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x158]
push ecx
push 0
push str.UpperFilters
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023501
cmp dword [ebp - 8], 0
je 0x10023501
cmp dword [ebp - 8], 0x100
jae 0x10023501
cmp dword [ebp + 8], 0
je 0x100234f4
mov eax, dword [ebp - 8]
sub eax, 1
push eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
push edx
call fcn.1002aae0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 1]
mov dword [ebp - 4], edx
push 0x100
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.1002aa10
add esp, 0xc
mov dword [ebp - 8], 0x100
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
push str.LowerFilters
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023587
cmp dword [ebp - 8], 0
je 0x10023587
cmp dword [ebp - 8], 0x100
jae 0x10023587
cmp dword [ebp + 8], 0
je 0x1002357a
mov edx, dword [ebp - 8]
sub edx, 1
push edx
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
push ecx
call fcn.1002aae0
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx - 1]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x154]
push eax
call fcn.1002b28a
add esp, 4
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0x144], ecx
jmp 0x100232f5
jmp 0x100235be
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x148]
push eax
call fcn.1002b28a
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x100231dc
jmp 0x100235ef
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002ae45
mov esp, ebp
pop ebp
ret