Function at 0x10047340
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x10072f40]
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 - 0x2c0], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 4], 3
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x2b0]
push eax
push 0x10062b44
push 3
push 0
push 0x10062b64
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x1004768e
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x2ac]
mov eax, dword [ebp - 0x2b0]
push 0
push edx
mov ecx, dword [eax]
test edi, edi
jne 0x1004740b
push 0x10062b74
jmp 0x1004740c
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x1004767a
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x10047675
mov ecx, dword [eax]
lea edx, [ebp - 0x2d0]
push edx
lea edx, [ebp - 0x2a4]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10047675
nop word [eax + eax]
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x2b8]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x10047637
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x2a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x290]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x2bc]
push eax
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov eax, dword [ebp - 0x2bc]
push dword [ebp - 0x2b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x2bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2b4], 0
push eax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2a8], 0
push eax
push dword [ebp - 0x2cc]
mov ecx, ebx
call fcn.10047750
movzx edi, word [ebp - 0x2a8]
lea eax, [ebp - 0x90]
movzx esi, word [ebp - 0x2b4]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
push esi
push str.vid__.4xpid__.4x
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.1003b190
lea esi, [ebp - 0x90]
add esp, 0x20
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10047540
sub esi, ecx
lea edi, [ebp - 0x290]
sar esi, 1
lea ecx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10047560
sub edi, ecx
lea eax, [esi + 4]
xor ecx, ecx
sar edi, 1
mov edx, 2
sub edi, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005025d
mov ecx, eax
lea eax, [esi + esi]
mov dword [ebp - 0x2b4], eax
add eax, 4
push eax
push 0
push ecx
mov dword [ebp - 0x2a8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
xor ebx, ebx
test edi, edi
jle 0x1004761c
lea esi, [ebp - 0x290]
nop word [eax + eax]
push dword [ebp - 0x2b4]
push esi
push dword [ebp - 0x2a8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x2a8]
lea eax, [ebp - 0x90]
add esp, 0xc
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10047607
test dx, dx
je 0x10047603
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10047607
add ecx, 4
add eax, 4
test dx, dx
jne 0x100475e1
xor eax, eax
jmp 0x1004760c
sbb eax, eax
or eax, 1
test eax, eax
je 0x100476d9
inc ebx
add esi, 2
cmp ebx, edi
jl 0x100475c0
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x10047631
push 2
push eax
call fcn.1005024f
add esp, 8
mov ebx, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x10047651
mov dword [ebp - 0x2a4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2ac]
lea edx, [ebp - 0x2d0]
push edx
lea edx, [ebp - 0x2a4]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10047450
mov esi, 0x80004005
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x1004768e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x100476a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x100476b9
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
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.1005078e
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x100476ee
push 2
push eax
call fcn.1005024f
add esp, 8
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x2c4]
push edx
push 0x10062b54
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
mov ecx, dword [ebp - 0x2a4]
mov esi, eax
test ecx, ecx
je 0x10047726
mov dword [ebp - 0x2a4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c8]
test esi, esi
jns 0x1004773b
mov dword [ecx], 0
jmp 0x1004767a
mov eax, dword [ebp - 0x2c4]
mov dword [ecx], eax
jmp 0x1004767a