Function at 0x4053f0
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword [0x41b150]
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 1
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
lea ecx, [esp + 0x18]
push ecx
push 0x4145e8
push 1
push 0
push 0x414708
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
test eax, eax
jne 0x405565
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edx, dword [eax]
push 0x4146f8
push eax
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test edi, edi
je 0x405486
mov eax, dword [0x41be38]
mov ecx, dword [eax*4 + 0x41606c]
push ecx
call fcn.00406ee0
add esp, 4
jmp 0x405565
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40554f
mov edi, 0x10
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x4147d0
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x405526
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push 0
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40551c
mov ecx, dword [esp + 0x2c]
push eax
push eax
lea eax, [esp + 0x3c]
push 0x50
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
lea edx, [esp + 0x34]
push edx
push edi
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc edi
call dword [ecx + 0xc]
test eax, eax
je 0x4054b3
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
push 0x800
push esi
call ebx
lea edx, [esp + 0x18]
push edx
push 0x4145e8
push 1
push 0
push 0x414708
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x405683
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 0x4146e8
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
jne 0x405683
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x405679
mov edi, 0x1a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x4147d0
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x405650
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push 0
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x405646
mov ecx, dword [esp + 0x2c]
push eax
push eax
lea eax, [esp + 0x3c]
push 0x50
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
lea edx, [esp + 0x34]
push edx
push edi
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc edi
call dword [ecx + 0xc]
test eax, eax
je 0x4055dd
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret