Function at 0x1000ec00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x10], 0
push 0xa
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
movzx eax, al
push 0
push eax
call dbg.FAudio_INTERNAL_InitSIMDFunctions
add esp, 8
push str.kernelbase.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x1003c608], eax
test eax, eax
je 0x1000ec65
push str.SetThreadDescription
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1003c60c], eax
test eax, eax
jne 0x1000ec65
push dword [0x1003c608]
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x1003c608], 0
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
push 0x1003c0c4
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x1003c610]
test eax, eax
je 0x1000ec87
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x1000ecad
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x1003c614], eax
push 0x1003c610
push 0x10030b00
push 1
push 0
push 0x10030b50
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x1003c0c4
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esi], 0
push 0x3c
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
push 0xc
push 1
call sym._calloc
add esp, 8
mov edi, eax
mov eax, dword [ebx]
mov dword [esi], eax
movsd xmm0, qword [ebx + 4]
movsd qword [esi + 4], xmm0
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
movzx ecx, word [ebx + 0x10]
mov word [esi + 0x10], cx
cmp ax, 0xfffe
jne 0x1000ed11
movzx eax, word [ebx + 0x12]
mov word [esi + 0x12], ax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
movups xmm0, xmmword [ebx + 0x18]
movups xmmword [esi + 0x18], xmm0
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.kernel32.dll_CreateEventW]
call ebx
mov dword [ebp - 0x14], eax
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call ebx
mov dword [edi + 8], eax
lea edx, [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
call dbg.FAudio_OpenDevice
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push 0
push 0x17
push 0x100309e0
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
test ax, ax
mov eax, 0x493e0
mov ebx, 0x9c3ff
cmovns ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push esi
push 0
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000edb7
cmp word [eax], 0xfffe
jne 0x1000eda2
movsd xmm0, qword [eax + 0x20]
movsd qword [esi + 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm1
jmp 0x1000edad
movzx ecx, word [eax + 0x10]
mov word [esi + 0x10], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [0x10031d3c]
push edx
push esi
push 0
push 0
push 0
push ebx
push 0x40000
push 0
push eax
call dword [ecx + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x14]
push ebx
push eax
call dword [ecx + 0x34]
mov ecx, dword [esi]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
movsd xmm0, qword [esi + 4]
movsd qword [edx + 4], xmm0
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov ax, 0x12
cmp cx, 0xfffe
jne 0x1000ee1c
movzx eax, word [esi + 0x12]
mov word [edx + 0x12], ax
mov eax, dword [esi + 0x14]
mov dword [edx + 0x14], eax
movups xmm1, xmmword [esi + 0x18]
movups xmmword [edx + 0x18], xmm1
mov ax, 0x16
mov word [edx + 0x10], ax
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
test ax, ax
js 0x1000ee4f
movd eax, xmm0
mov ecx, 0x51eb851f
mul ecx
shr edx, 5
jmp 0x1000ee86
xorps xmm1, xmm1
movss xmm1, xmm0
orps xmm1, xmmword [0x10030920]
subsd xmm1, qword [0x10030930]
divsd xmm1, qword [0x10030938]
cvttsd2si eax, xmm1
mov ecx, eax
sar ecx, 0x1f
subsd xmm1, qword [0x10030940]
cvttsd2si edx, xmm1
and edx, ecx
or edx, eax
mov dword [esi + 0x38], edx
push 0
push 0
push esi
push dbg._FAudio_AudioClientThread@4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x38]
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret