Function at 0x401a6e
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, reloc.uxtheme.dll_OpenThemeData
call fcn.0045c8d0
sub esp, 0x8e4
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x401a91
xor eax, eax
jmp 0x401d70
mov edi, dword [0x47d584]
lea eax, [ebp - 0x18]
push eax
push 0x48643c
push 3
push ebx
push 0x48651c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], ebx
call edi
test eax, eax
jne 0x401b02
lea eax, [ebp - 0x40]
push eax
push 0x48646c
push 1
push ebx
push 0x4864fc
call edi
cmp eax, ebx
jne 0x401b02
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x10]
push ebx
push edx
mov ecx, dword [eax]
push 0x4864ec
push eax
mov dword [ebp - 4], ebx
call dword [ecx + 0xc]
cmp eax, ebx
je 0x401b0a
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x401b02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, reloc.KERNEL32.dll_GetProcessHeap
jmp 0x401d70
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x401d2c
jmp 0x401b33
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push 0x486580
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x401bdb
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x50]
push ebx
mov word [ebp - 0x50], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401bd2
cmp dword [esi + 4], reloc.KERNEL32.dll_GetProcessHeap
je 0x401b94
push 0x10
call fcn.0045c816
cmp eax, ebx
pop ecx
je 0x401b8c
or dword [eax + 4], reloc.KERNEL32.dll_GetProcessHeap
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x401b8e
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push ebx
push ebx
mov dword [esi + 4], eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x800
inc dword [ebp - 0x24]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x48]
push ebx
push ebx
call dword [0x47d200]
lea eax, reloc.KERNEL32.dll_GetProcessHeap
mov ecx, esi
push eax
call fcn.00401d81
push dword [ebp - 0x48]
call dword [0x47d3e4]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push 0x48645c
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x401d08
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 8]
mov esi, reloc.wtsapi32.dll_WTSVirtualChannelOpen
push edx
mov ecx, dword [eax]
push esi
push dword [ebp - 0x14]
mov edi, 0x48654c
push edi
push 0x4864dc
push eax
call dword [ecx + 0x18]
cmp eax, ebx
je 0x401c3b
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 8]
push edx
push esi
push dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push 0x4864cc
push eax
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x401d08
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x34], 0x80
lea esi, [eax + 8]
jne 0x401cff
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jle 0x401cff
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xf0]
push edx
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x401cf0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x44]
cmp dword [eax + 0x34], ebx
je 0x401cf0
cmp dword [eax + 0x38], ebx
je 0x401cf0
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x6f]
mov byte [ebp - 0x70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 0x44]
push dword [eax + 0x38]
push dword [eax + 0x34]
lea eax, [ebp - 0x70]
push str._d___d:
push eax
call dword [fcn.0047d398]
push 8
call fcn.0045c816
add esp, 0x14
cmp eax, ebx
je 0x401cdc
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x401cde
xor eax, eax
lea ecx, [ebp - 0x70]
mov dword [esi], eax
push ecx
mov ecx, eax
call fcn.00401d81
mov esi, dword [esi]
add esi, 4
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jl 0x401c71
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + reloc.uxtheme.dll_GetThemeFont]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, ebx
je 0x401b30
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401d3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401d4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x401d5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x401d6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4