Function at 0x4038ec
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41004c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x4113b8
push 3
push 0
push 0x411508
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x403965
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403952
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push 0
mov ecx, dword [edx]
push eax
push dword [ebp + 8]
push edx
call dword [ecx + 0xc]
test eax, eax
je 0x4039c4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40399d
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4039b1
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x403a01
mov dword [ebp - 4], 0
je 0x4039da
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4039ee
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
mov ebx, dword [ecx]
push edx
push 1
push ecx
call dword [ebx + 0xc]
test eax, eax
jne 0x403ad0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [ecx]
xor edx, edx
push 0x4112a8
push edx
push edx
push ecx
call dword [ebx + 0x24]
test eax, eax
jne 0x403a98
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push 0
mov eax, 8
mov word [ebp - 0x38], ax
push edx
mov ebx, dword [ecx]
push 0x415c04
push ecx
call dword [ebx + 0xc]
test eax, eax
jne 0x403a98
push dword [ebp - 0x30]
push dword [ebp + 0xc]
call fcn.0040eeb8
test eax, eax
jne 0x403a8f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
mov ebx, dword [ecx]
xor edx, edx
push 0x411398
push edx
push edx
push ecx
call dword [ebx + 0x20]
test eax, eax
je 0x403b11
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403ab5
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
mov ebx, dword [ecx]
push edx
push 1
push ecx
call dword [ebx + 0xc]
test eax, eax
je 0x403a19
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403ae4
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403af8
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403b3a
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403b4e
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403b62
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov eax, ebx
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret