Function at 0x10008ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10037d4c
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x10045c94]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10045c94]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x354]
mov eax, dword [ebp]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], esi
cmp eax, edi
je 0x10008b38
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x12
push edi
push edi
push 0x1003da18
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x10008b56
xor eax, eax
jmp 0x10008eac
lea ecx, [esp + 0x58]
push ecx
push edi
push 0x1003da18
push edi
push eax
mov dword [esp + 0x6c], 0x1c
mov dword [esp + 0x2c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x10008e95
lea ecx, [ecx]
mov eax, 7
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], cx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], dx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], edi
mov word [esp + 0xcc], cx
mov dword [esp + 0xfc], eax
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], dx
mov dword [esp + 0x118], eax
mov dword [esp + 0x114], edi
mov word [esp + 0x104], cx
mov dword [esp + 0x134], eax
mov dword [esp + 0x130], edi
mov word [esp + 0x120], dx
push edi
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x358], edi
mov edx, dword [ebp]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push edi
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esp + 0x2c], edi
call ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.100128f0
add esp, 4
mov esi, eax
mov dword [esi], 6
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esp + 0x54], 0x1c
call ebx
test eax, eax
jne 0x10008cc0
push esi
call fcn.100128fb
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34c], 0xffffffff
call fcn.10008ee0
jmp 0x10008e6a
lea edx, [esi + 4]
mov eax, edx
lea ebx, [eax + 2]
jmp 0x10008cd0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10008cd0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x7c]
call fcn.10001360
push esi
call fcn.100128fb
add esp, 4
push 0x1fe
lea ecx, [esp + 0x142]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x148], ax
call fcn.10021820
mov ecx, dword [ebp]
add esp, 0xc
push edi
push 0x200
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x10008d66
lea eax, [esp + 0x13c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10008d42
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x124]
call fcn.10001360
mov edi, dword [ebp]
push 0xc
lea ebx, [esp + 0x40]
lea esi, [esp + 0x24]
call fcn.10008ff0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x358], 1
call fcn.10001450
mov byte [esp + 0x34c], 0
cmp dword [esp + 0x38], 8
jb 0x10008dad
mov eax, dword [esp + 0x24]
push eax
call fcn.100128fb
add esp, 4
mov edi, dword [ebp]
push 0
lea ebx, [esp + 0x40]
lea esi, [esp + 0x24]
call fcn.10008ff0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x358], 2
call fcn.10001450
mov byte [esp + 0x34c], 0
cmp dword [esp + 0x38], 8
jb 0x10008df4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100128fb
add esp, 4
mov edi, dword [ebp]
push 0xe
lea ebx, [esp + 0x40]
lea esi, [esp + 0x24]
call fcn.10008ff0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x358], 3
call fcn.10001450
mov byte [esp + 0x34c], 0
cmp dword [esp + 0x38], 8
jb 0x10008e3b
mov edx, dword [esp + 0x24]
push edx
call fcn.100128fb
add esp, 4
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x13c], eax
call fcn.10009a40
lea esi, [esp + 0x74]
mov dword [esp + 0x34c], 0xffffffff
call fcn.10008ee0
xor edi, edi
mov eax, dword [esp + 0x18]
inc eax
lea edx, [esp + 0x58]
push edx
push eax
push 0x1003da18
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
push edi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x10008b80
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.1001ec96
add esp, 0x33c
ret 4