Function at 0x1003ba5
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
cmp byte [0x10091b4], bl
push esi
push edi
jne 0x1003f62
push 1
push dword [0x1009438]
mov byte [0x10091b4], 1
mov dword [0x100936c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 0xffffffff
jne 0x1003bfa
push 0x10016a4
jmp 0x1003c61
cmp eax, ebx
jle 0x1003c12
mov esi, eax
push 0x400
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_RemoveMenu]
dec esi
jne 0x1003c00
push 0xa
mov edi, 0x10091b8
pop esi
push edi
call fcn.0100219d
add edi, 4
dec esi
pop ecx
jne 0x1003c1a
push 0xa
mov edi, 0x10091e0
pop esi
push edi
call fcn.0100219d
add edi, 4
dec esi
pop ecx
jne 0x1003c2f
lea eax, [ebp - 0x1c]
push eax
push 0x1001e00
xor esi, esi
inc esi
push esi
push ebx
push 0x1001f10
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x1003c6c
push 0x1001680
call fcn.01002e18
pop ecx
jmp 0x1003f62
mov eax, dword [ebp - 0x1c]
push ebx
lea edx, [ebp - 8]
push edx
push 0x1001f00
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1003c96
push 0x1001628
call fcn.01002e18
pop ecx
jmp 0x1003df5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
push edx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003dd4
mov dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
push 0x1001f90
push ebx
push ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x1003dab
mov eax, dword [ebp - 0x20]
push ebx
lea edx, [ebp - 0x34]
push edx
push 0x100160c
mov word [ebp - 0x34], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003da2
mov edi, dword [ebp - 0x2c]
cmp edi, ebx
je 0x1003d2c
push edi
call fcn.01007dd0
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01007b80
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.010020a7
xor esi, esi
inc esi
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x1009208]
cmp eax, ebx
je 0x1003d53
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x1003d53
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x100919c]
neg eax
sbb eax, eax
and eax, 2
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx*4 + 0x10091b8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
inc dword [ebp - 0x18]
mov ecx, dword [eax]
inc dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
push edx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1003cc0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push 0x800
push dword [ebp - 0xc]
mov dword [0x100936c], eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 8]
push edx
push 0x1001ef0
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x1003f62
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
push edx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003f59
push 0x1a
pop edi
mov dword [ebp - 0x20], 0x10091e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x1001f90
push ebx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x1003f31
mov eax, dword [ebp - 0x18]
push ebx
lea edx, [ebp - 0x34]
push edx
push 0x100160c
mov word [ebp - 0x34], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003f28
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1003e96
xor eax, eax
jmp 0x1003ebd
push eax
call fcn.01007dd0
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01007b80
mov eax, esp
push ebx
push esi
push dword [ebp - 0x14]
push eax
call fcn.010020a7
xor esi, esi
inc esi
push eax
push edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x100920c]
cmp eax, ebx
je 0x1003ee2
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x1003ee2
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 8
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x100919c]
neg eax
sbb eax, eax
and eax, 2
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add dword [ebp - 0x20], 4
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
push edx
push esi
push eax
inc edi
call dword [ecx + 0xc]
test eax, eax
je 0x1003e4b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret