Function at 0x401e10
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call dword [0x403138]
cmp eax, ebx
jne 0x401e37
mov eax, dword [esp + 0x140]
mov dword [eax + 8], 1
jmp 0x401e47
cmp eax, 1
je 0x401e47
cmp eax, 0x80010106
jne 0x40203f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
push ecx
push 0x4031c0
stosw word es:[edi], ax
push 1
push ebx
push 0x4031e0
mov dword [esp + 0x30], ebx
stosb byte es:[edi], al
call dword [0x403140]
test eax, eax
jl 0x40203f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ebx
mov dword [esp + 0x18], ebx
mov edx, dword [eax]
push ecx
push 0x4031d0
push eax
call dword [edx + 0xc]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jl 0x40203f
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40203f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor edx, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x26], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2a], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2e], edx
mov word [esp + 0x24], bx
mov word [esp + 0x32], dx
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x401fc6
mov ebp, dword [esp + 0x13c]
mov esi, dword [0x403050]
mov edi, dword [0x4030a4]
cmp dword [esp + 0x20], ebx
jbe 0x401fc6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x403190
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x401f9a
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ebx
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push edx
push 0x4042f4
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x401f79
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call esi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x34]
push ebp
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x402008
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x401f17
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x140]
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x40203f
mov ecx, dword [eax]
lea edx, [esi + 4]
push edx
push 0x4031a0
push eax
call dword [ecx]
test eax, eax
jge 0x40204c
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x10]
push ecx
push 0x4031b0
mov edx, dword [eax]
push ebx
push ebx
push eax
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebx
mov dword [esp + 0x10], ebx
jge 0x401fc6
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret