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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438951
mov eax, dword fs:[0]
push eax
sub esp, 0x750
mov eax, dword [0x4545c0]
xor eax, esp
mov dword [esp + 0x748], eax
push ebx
push esi
push edi
mov eax, dword [0x4545c0]
xor eax, esp
push eax
lea eax, [esp + 0x760]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 6
xor esi, esi
push esi
push esi
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
mov dword [esp + 0x44], edi
cmp edi, 0xffffffff
je 0x40e777
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xf8], eax
mov dword [esp + 0xf4], esi
mov word [esp + 0xe4], cx
xor edx, edx
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], esi
mov word [esp + 0x100], dx
mov dword [esp + 0x130], eax
xor eax, eax
mov dword [esp + 0x12c], esi
mov word [esp + 0x11c], ax
mov dword [esp + 0x768], 3
lea ecx, [esp + 0x64]
push ecx
push esi
push edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x70], 0x1c
mov dword [esp + 0x2c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40e758
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
jmp 0x40dfb0
push 0x206
lea eax, [esp + 0x34a]
xor edx, edx
push esi
push eax
mov word [esp + 0x350], dx
call fcn.0042c9e0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x208
lea edx, [esp + 0x34c]
push edx
lea eax, [esp + 0x24]
push eax
push 0xc
lea ecx, [esp + 0x78]
push ecx
push edi
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x34], esi
call ebx
test eax, eax
jne 0x40e029
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x34c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x78]
push eax
push edi
call ebx
test eax, eax
je 0x40e73a
push 0x206
lea edx, [esp + 0x142]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x148], cx
call fcn.0042c9e0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x208
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x24
lea eax, [esp + 0x78]
push eax
push edi
mov dword [esp + 0x4c], 0x208
call ebx
test eax, eax
je 0x40e73a
push 0x206
lea edx, [esp + 0x552]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x558], cx
call fcn.0042c9e0
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push 0x208
lea ecx, [esp + 0x554]
push ecx
lea edx, [esp + 0x24]
push edx
push 0xd
lea eax, [esp + 0x78]
push eax
push edi
mov dword [esp + 0x50], 0x208
call ebx
mov edi, 7
xor ecx, ecx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], cx
lea edx, [esp + 0x54c]
push edx
lea eax, [esp + 0xa0]
mov byte [esp + 0x76c], 4
call fcn.0040e880
xor eax, eax
mov word [esp + 0xb8], ax
lea eax, [esp + 0x344]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e120
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x348]
push ecx
lea ecx, [esp + 0xc0]
call fcn.0040fdd0
mov byte [esp + 0x768], 5
xor edx, edx
lea eax, [esp + 0x13c]
mov word [esp + 0x48], dx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e170
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x50]
call fcn.0040fdd0
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov ecx, ebx
mov byte [esp + 0x768], 6
call fcn.0040f820
lea ecx, [esp + 0xb8]
mov edi, eax
call fcn.0040f740
mov byte [esp + 0x768], 5
cmp dword [esp + 0x5c], 8
jb 0x40e1d2
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004243b0
add esp, 4
xor edx, edx
mov edi, 7
mov byte [esp + 0x768], 4
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov word [esp + 0x48], dx
jb 0x40e208
mov eax, dword [esp + 0xb8]
push eax
call fcn.004243b0
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x13c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e221
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x50]
call fcn.0040fdd0
lea eax, [esp + 0x48]
push eax
mov eax, ebx
mov byte [esp + 0x76c], 7
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 4]
je 0x40e285
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e26d
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.00410ba0
test eax, eax
js 0x40e285
lea eax, [esp + 0x10]
jmp 0x40e290
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 0x80], esi
mov byte [esp + 0x768], 4
sete bl
cmp dword [esp + 0x5c], 8
jb 0x40e2b7
mov edx, dword [esp + 0x48]
push edx
call fcn.004243b0
add esp, 4
test bl, bl
je 0x40e388
xor eax, eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x13c]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e2e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040fdd0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
mov eax, edi
mov byte [esp + 0x76c], 8
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 4]
je 0x40e348
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e330
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.00410ba0
test eax, eax
js 0x40e348
lea eax, [esp + 0x10]
jmp 0x40e357
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x40]
mov ecx, dword [eax]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0xa4]
lea ecx, [ecx + 0x70]
push edx
call fcn.0040fb30
mov byte [esp + 0x768], 4
cmp dword [esp + 0x5c], 8
jb 0x40e388
mov eax, dword [esp + 0x48]
push eax
call fcn.004243b0
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x13c]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e3a5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x50]
call fcn.0040fdd0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
mov eax, ebx
mov byte [esp + 0x76c], 9
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 4]
je 0x40e40d
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e3f5
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.00410ba0
test eax, eax
js 0x40e40d
lea eax, [esp + 0x10]
jmp 0x40e418
mov ecx, dword [ebx + 4]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x38]
mov eax, dword [eax]
cmp dword [eax + 0x48], esi
mov byte [esp + 0x768], 4
sete bl
cmp dword [esp + 0x5c], 8
jb 0x40e43c
mov edx, dword [esp + 0x48]
push edx
call fcn.004243b0
add esp, 4
test bl, bl
je 0x40e520
xor eax, eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x13c]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e461
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040fdd0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
mov eax, edi
mov byte [esp + 0x76c], 0xa
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 4]
je 0x40e4c9
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e4b1
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.00410ba0
test eax, eax
js 0x40e4c9
lea eax, [esp + 0x10]
jmp 0x40e4d8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x28]
mov ecx, dword [eax]
lea eax, [esp + 0x13c]
lea ecx, [ecx + 0x38]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x40e4e7
sub eax, edi
sar eax, 1
push eax
lea edx, [esp + 0x140]
push edx
call fcn.0040fdd0
mov byte [esp + 0x768], 4
cmp dword [esp + 0x5c], 8
jb 0x40e520
mov eax, dword [esp + 0x48]
push eax
call fcn.004243b0
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x13c]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e540
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x50]
call fcn.0040fdd0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
mov eax, ebx
mov byte [esp + 0x76c], 0xb
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 4]
je 0x40e5a8
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e590
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.00410ba0
test eax, eax
js 0x40e5a8
lea eax, [esp + 0x10]
jmp 0x40e5b3
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp dword [eax + 0x64], esi
mov byte [esp + 0x768], 4
sete bl
cmp dword [esp + 0x5c], 8
jb 0x40e5d7
mov edx, dword [esp + 0x48]
push edx
call fcn.004243b0
add esp, 4
test bl, bl
je 0x40e6f2
xor eax, eax
mov word [esp + 0x80], ax
lea eax, [esp + 0x13c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e605
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x88]
call fcn.0040fdd0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x80]
push edx
mov eax, edi
mov byte [esp + 0x76c], 0xc
call fcn.00410370
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 4]
je 0x40e679
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e65b
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x84]
call fcn.00410ba0
test eax, eax
js 0x40e679
lea eax, [esp + 0x10]
jmp 0x40e688
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x3c]
mov ecx, dword [eax]
lea eax, [esp + 0x54c]
lea ecx, [ecx + 0x54]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x40e697
sub eax, edi
sar eax, 1
push eax
lea edx, [esp + 0x550]
push edx
call fcn.0040fdd0
mov byte [esp + 0x768], 4
cmp dword [esp + 0x94], 8
jb 0x40e6d6
mov eax, dword [esp + 0x80]
push eax
call fcn.004243b0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], esi
mov word [esp + 0x80], cx
mov byte [esp + 0x768], 3
cmp dword [esp + 0xb0], 8
jb 0x40e714
mov edx, dword [esp + 0x9c]
push edx
call fcn.004243b0
add esp, 4
mov edi, dword [esp + 0x44]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], ax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x64]
inc eax
push ecx
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40dfb0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea edx, [esp + 0xd4]
push edx
mov dword [esp + 0x76c], 0xffffffff
call fcn.0040e7a0
mov ecx, dword [esp + 0x760]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x748]
xor ecx, esp
call fcn.004243bb
mov esp, ebp
pop ebp
ret 4