Function at 0x1006339
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
cmp byte [0x100e954], bl
push esi
push edi
jne 0x100675d
push 1
push dword [0x100e7e4]
mov byte [0x100e954], 1
mov dword [0x100eb0c], 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 0x100638e
push 0x1001820
jmp 0x10063f2
cmp eax, ebx
jle 0x10063a6
mov esi, eax
push 0x400
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_RemoveMenu]
dec esi
jne 0x1006394
push 0xa
mov esi, 0x100e958
pop edi
push esi
call fcn.01004a8d
add esi, 4
dec edi
pop ecx
jne 0x10063ae
push 0xa
mov esi, 0x100e980
pop edi
push esi
call fcn.01004a8d
add esi, 4
dec edi
pop ecx
jne 0x10063c3
lea eax, [ebp - 0x1c]
push eax
push 0x1002588
xor edi, edi
inc edi
push edi
push ebx
push 0x1002678
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x10063fd
push 0x10017fc
call fcn.010056f8
pop ecx
jmp 0x100675d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 8]
push edx
push 0x1002668
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1006424
push 0x10017d0
call fcn.010056f8
pop ecx
jmp 0x10065ab
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 edi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100658a
mov dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x1004994
push ebx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x1006561
mov eax, dword [ebp - 0x28]
push ebx
lea edx, [ebp - 0x38]
push edx
push 0x10017b4
mov word [ebp - 0x38], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1006558
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x1006499
xor esi, esi
jmp 0x10064c8
push eax
call fcn.0100a212
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100a130
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
inc edi
push esi
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x100e9a8]
cmp eax, ebx
je 0x10064ef
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x10064ef
mov dword [ebp - 0x10], edi
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 [0x100e93c]
neg eax
sbb eax, eax
and eax, 2
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x18]
lea esi, [esi*4 + 0x100e958]
cmp dword [esi], ebx
je 0x100654d
push 0x9e6
push 0x1001360
push 0x1001794
call fcn.0100a736
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x28]
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 edi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100644e
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 [0x100eb0c], eax
call dword [sym.imp.USER32.dll_AppendMenuA]
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jne 0x10065c7
push 0x9fc
push 0x1001360
push 0x100177c
call fcn.0100a736
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 8]
push edx
push 0x1002658
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jne 0x100675d
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 edi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1006754
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x18], 0x100e980
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x1004994
push ebx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100672a
mov eax, dword [ebp - 0x28]
push ebx
lea edx, [ebp - 0x38]
push edx
push 0x10017b4
mov word [ebp - 0x38], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1006721
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x1006669
xor esi, esi
jmp 0x1006698
push eax
call fcn.0100a212
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100a130
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
inc edi
push esi
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x100e9ac]
cmp eax, ebx
je 0x10066bf
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x10066bf
mov dword [ebp - 0x10], edi
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 [0x100e93c]
neg eax
sbb eax, eax
and eax, 2
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x18]
cmp dword [esi], ebx
je 0x1006716
push 0xa1c
push 0x1001360
push 0x100175c
call fcn.0100a736
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x28]
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]
inc dword [ebp - 0x14]
add dword [ebp - 0x18], 4
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
push edx
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100661e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret