Function at 0x10035d80
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0f50
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x338], ebx
movzx eax, word [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
push str.vid__xpid__x
lea eax, [ebp - 0x218]
mov dword [ebp - 0x348], 0
push 0x104
push eax
call fcn.10027900
add esp, 0x14
lea eax, [ebp - 0x34c]
push eax
push 0x100cbf0c
push 1
push 0
push 0x100c958c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebx + 0x118], eax
test eax, eax
js 0x1003622b
mov ecx, dword [ebp - 0x34c]
test ecx, ecx
je 0x1003622b
mov eax, dword [ecx]
lea edx, [ebp - 0x340]
push 0
push edx
push 0x100c95ac
push ecx
call dword [eax + 0xc]
mov dword [ebx + 0x118], eax
mov eax, dword [ebp - 0x34c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebx + 0x118], 0
jl 0x1003622b
mov ecx, dword [ebp - 0x340]
test ecx, ecx
je 0x1003622b
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x340]
lea edx, [ebp - 0x360]
push edx
lea edx, [ebp - 0x33c]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10036149
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x344]
push edx
push 0x100cd2d4
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
mov dword [ebx + 0x118], eax
test eax, eax
js 0x10036119
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1003d670
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.1003d670
add esp, 0x18
lea eax, [ebp - 0x370]
push eax
call esi
mov eax, dword [ebp - 0x344]
lea edx, [ebp - 0x370]
push 0
push edx
push str.DevicePath
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0
push 0
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x368]
push 0
push 0
call edi
lea eax, [ebp - 0x370]
push eax
call esi
mov eax, dword [ebp - 0x344]
lea edx, [ebp - 0x370]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0
push 0
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x368]
push 0
push 0
call edi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x324], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x320], 0xf
mov byte [ebp - 0x334], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035f94
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x334]
call fcn.10038480
lea ebx, [ebp - 0x218]
mov dword [ebp - 4], 0
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10035fc0
mov edi, dword [ebp - 0x320]
sub ebx, ecx
mov esi, dword [ebp - 0x334]
lea ecx, [ebp - 0x334]
mov eax, dword [ebp - 0x324]
cmp edi, 0x10
mov dword [ebp - 0x350], esi
cmovae ecx, esi
mov dword [ebp - 0x35c], ecx
cmp ebx, eax
ja 0x100360b8
test ebx, ebx
je 0x1003617b
movsx edx, byte [ebp - 0x218]
sub eax, ebx
inc eax
mov dword [ebp - 0x358], edx
add eax, ecx
mov dword [ebp - 0x354], eax
sub eax, ecx
push eax
push edx
push ecx
call fcn.1003df30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100360b8
mov esi, ebx
lea ecx, [ebp - 0x218]
mov edx, edi
sub esi, 4
jb 0x10036052
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10036057
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10036041
cmp esi, 0xfffffffc
je 0x1003608b
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10036084
cmp esi, 0xfffffffd
je 0x1003608b
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10036084
cmp esi, 0xfffffffe
je 0x1003608b
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10036084
cmp esi, 0xffffffff
je 0x1003608b
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1003608b
sbb eax, eax
or eax, 1
jmp 0x1003608d
xor eax, eax
test eax, eax
je 0x10036160
mov eax, dword [ebp - 0x354]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x358]
push edi
call fcn.1003df30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10036032
mov ebx, dword [ebp - 0x338]
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x320]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x1003610d
mov edx, dword [ebp - 0x350]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10036103
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003624b
push ecx
push edx
call fcn.1003acca
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x340]
lea edx, [ebp - 0x360]
push edx
lea edx, [ebp - 0x33c]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10035e91
mov eax, dword [ebp - 0x340]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x348]
jmp 0x1003622d
sub edi, dword [ebp - 0x35c]
cmp edi, 0xffffffff
je 0x100360b8
mov esi, dword [ebp - 0x350]
mov edi, dword [ebp - 0x320]
mov ebx, dword [ebp - 0x338]
lea ecx, [ebp - 0x31c]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10036190
mov eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x348]
push edx
push 0x100cbf7c
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
mov dword [ebx + 0x118], eax
test eax, eax
js 0x100360be
cmp dword [ebp - 0x348], 0
je 0x100360be
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x10036149
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1003620d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003624b
push ecx
push esi
call fcn.1003acca
mov eax, dword [ebp - 0x340]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x348]
jmp 0x1003622d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret 8
call fcn.100595d0
int3