Function at 0x1000dc00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xa8
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test byte [0x10015190], 8
jne 0x1000dd88
mov dword [esp], 0x14
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1000e1b6
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [eax], 0x10015174
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 4]
lea eax, [ebp - 0x80]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0x1001bcd0
call fcn.1000c1d0
test eax, eax
mov esi, eax
js 0x1000dd68
mov dword [esp + 4], str.E6327CAD_DCEC_4949_AE8A_991E976A79D2
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x1000de90
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
mov esi, eax
test esi, esi
js 0x1000df00
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x84]
lea ecx, [ebx + 0x10]
mov dword [ebx + 0xc], esi
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x84]
sub esp, 0x14
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000c3e0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
sub esp, 4
mov dword [eax], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
test byte [0x10015190], 4
jne 0x1000df30
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], 0
jmp 0x1000dd11
test edi, edi
je 0x1000e048
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x1000dee0
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x1001cfc8
mov dword [esp + 4], eax
call fcn.1000c380
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000e058
mov eax, dword [ebp + 8]
shr eax, 0x10
test eax, eax
je 0x1000e010
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1001d03e
test edx, edx
jne 0x1000de44
mov eax, dword [ebp + 8]
call fcn.1000c430
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s___p___p___p__n
mov dword [esp + 0x18], ecx
mov dword [esp + 8], str.ActivateAudioInterfaceAsync
mov dword [esp + 4], 0x10015190
mov dword [esp], 3
call fcn.1000c650
jmp 0x1000dc1f
mov dword [esp + 4], str.2EEF81BE_33FA_4800_9670_1CD474972C3F
mov eax, dword [ebp + 8]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x1000df60
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
mov esi, eax
jmp 0x1000dcb9
mov dword [esp + 4], edi
mov dword [esp], 0x1001cfb8
call fcn.1000c380
mov ebx, eax
jmp 0x1000de01
test byte [0x10015190], 4
jne 0x1000e030
mov eax, dword [ebp - 0x80]
mov esi, 0x80070002
mov dword [ebp - 0x84], 0
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x1000dd75
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_MMDeviceEnumerator:__08lx_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10015190
mov dword [esp], 2
call fcn.1000c650
jmp 0x1000dd75
mov dword [esp + 8], 0x22
mov dword [esp + 4], str._SWDMMDEVAPI
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ucrtbase.dll_memcmp
test eax, eax
je 0x1000e148
movzx eax, byte [0x10015190]
test al, 1
jne 0x1000e0d0
test al, 4
je 0x1000df0d
mov esi, 0x80070002
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_IsBadStringPtrW]
shr eax, 0x10
test eax, eax
je 0x1000e0b0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
mov edx, eax
sub esp, 8
mov eax, 0x1001d03e
test edx, edx
jne 0x1000dfd9
mov eax, dword [ebp + 8]
call fcn.1000c430
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_requested_device___s_:__08lx_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10015190
mov dword [esp], 2
call fcn.1000c650
jmp 0x1000df0d
mov eax, dword [ebp + 8]
mov dword [esp], 0x1001d07d
mov dword [esp + 4], eax
call fcn.1000c380
jmp 0x1000de44
mov edx, dword [ebp + 8]
mov eax, 0x1001cfb1
test edx, edx
jne 0x1000df9f
jmp 0x1000dfd9
mov ebx, 0x1001cfb1
jmp 0x1000de01
mov eax, 0x1001cfb1
jmp 0x1000de44
mov eax, dword [ebp + 8]
mov dword [esp], 0x1001d07d
mov dword [esp + 4], eax
call fcn.1000c380
mov dword [esp + 0xc], str.Unrecognized_device_id_format:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10015190
mov dword [esp], 0
call fcn.1000c650
test byte [0x10015190], 4
je 0x1000df0d
mov esi, 0x80070002
nop
mov eax, dword [ebp + 8]
mov dword [esp], 0x1001d07d
mov dword [esp + 4], eax
call fcn.1000c380
jmp 0x1000dfd9
mov eax, dword [ebp + 8]
shr eax, 0x10
test eax, eax
je 0x1000e062
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [esp], eax
call edi
mov edx, eax
sub esp, 8
mov eax, 0x1001d03e
test edx, edx
jne 0x1000e106
mov eax, dword [ebp + 8]
call fcn.1000c430
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unrecognized_device_id_format:__s_n
mov dword [esp + 8], str.get_mmdevice_by_activatepath
mov dword [esp + 4], 0x10015190
mov dword [esp], 0
call fcn.1000c650
test byte [0x10015190], 4
je 0x1000df0d
mov esi, 0x80070002
jmp 0x1000dfb3
mov eax, dword [ebp + 8]
lea esi, [ebp - 0xe]
lea edx, [eax + 0x22]
lea eax, [ebp - 0x7c]
jmp 0x1000e16e
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, esi
je 0x1000e176
movzx ecx, word [edx]
test cx, cx
jne 0x1000e160
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
mov edx, dword [eax]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x7c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
mov esi, eax
jns 0x1000dcc1
test byte [0x10015190], 4
je 0x1000df0d
jmp 0x1000df9f
mov eax, 0x8007000e
jmp 0x1000dd58