Function at 0x1800146c0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov ebx, r8d
mov rsi, r9
mov r12d, edx
mov r13, rcx
mov qword [rbp - 8], 0
mov ecx, 0xa
call qword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
xor edx, edx
movzx ecx, al
call sym.FAudio_INTERNAL_InitSIMDFunctions
lea rcx, str.kernelbase.dll
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov qword [0x18001eb00], rax
mov rcx, rax
test rax, rax
je 0x180014737
lea rdx, str.SetThreadDescription
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x18001ec20], rax
test rax, rax
je 0x180014980
call sym.FAudio_PlatformAddRef
mov rax, qword [rbp + 0x78]
mov qword [rax], 0
test ebx, ebx
je 0x180014760
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 0x50
call qword [sym.imp.ucrtbase.dll_malloc]
mov edx, 1
mov ecx, 0x18
mov rbx, rax
call sym.calloc
mov rdx, qword [rsi]
cmp word [rsi], 0xfffe
mov rdi, rax
movzx eax, word [rsi + 0x10]
mov qword [rbx], rdx
mov rdx, qword [rsi + 8]
mov word [rbx + 0x10], ax
mov qword [rbx + 8], rdx
jne 0x1800147b3
movzx eax, word [rsi + 0x12]
movdqu xmm2, xmmword [rsi + 0x18]
mov word [rbx + 0x12], ax
mov eax, dword [rsi + 0x14]
movups xmmword [rbx + 0x18], xmm2
mov dword [rbx + 0x14], eax
mov r14, qword [sym.imp.kernel32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
and r12d, 0x8000
call r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r15, rax
call r14
mov rcx, qword [0x18001ea80]
xor r8d, r8d
xor edx, edx
mov qword [rdi + 0x10], rax
lea r9, [rbp - 8]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 8]
xor r9d, r9d
mov r8d, 0x17
lea rdx, [0x180028420]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [rax + 0x18]
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
cmp r12d, 1
lea r9, [rbp - 0x10]
sbb r14, r14
mov r8, rbx
xor edx, edx
mov rax, qword [rcx]
and r14, 0xfffffffffffacfe1
add r14, 0x9c3ff
call qword [rax + 0x38]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180014870
cmp word [rcx], 0xfffe
je 0x1800149a0
movdqu xmm1, xmmword [rcx]
movups xmmword [rbx], xmm1
movzx eax, word [rcx + 0x10]
mov word [rbx + 0x10], ax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rdi]
lea rdx, [0x180027f50]
mov r9, r14
mov r8d, 0x40000
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
call qword [rax + 0x18]
mov rcx, qword [rdi]
mov rdx, r15
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rdx, qword [rbx]
cmp word [rbx], 0xfffe
mov eax, dword [rbx + 4]
mov qword [rsi], rdx
mov rdx, qword [rbx + 8]
mov qword [rsi + 8], rdx
je 0x180014958
mov edx, 0x12
mov word [rsi + 0x10], dx
mov rdx, qword [rdi]
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x40], r13
mov qword [rbx + 0x28], rdx
mov rdx, qword [rdi + 0x10]
mov qword [rbx + 0x38], rdx
test r12d, r12d
je 0x180014948
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x180021260]
cvttsd2si rax, xmm0
mov dword [rbx + 0x48], eax
xor edx, edx
mov r9, rbx
lea r8, [sym.FAudio_AudioClientThread]
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [rbx + 0x48]
mov qword [rdi + 8], rax
mov rax, qword [rbp + 0x70]
mov dword [rax], edx
mov rax, qword [rbp + 0x78]
mov qword [rax], rdi
jmp 0x18001474b
imul rax, rax, 0x51eb851f
shr rax, 0x25
jmp 0x180014900
movzx edx, word [rbx + 0x12]
movdqu xmm3, xmmword [rbx + 0x18]
mov ecx, 0x16
mov word [rsi + 0x10], cx
mov word [rsi + 0x12], dx
mov edx, dword [rbx + 0x14]
movups xmmword [rsi + 0x18], xmm3
mov dword [rsi + 0x14], edx
jmp 0x1800148ce
mov rcx, qword [0x18001eb00]
call qword [sym.imp.kernel32.dll_FreeLibrary]
mov qword [0x18001eb00], 0
jmp 0x180014737
movdqu xmm4, xmmword [rcx]
movups xmmword [rbx], xmm4
movdqu xmm5, xmmword [rcx + 0x10]
movups xmmword [rbx + 0x10], xmm5
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x20], rax
jmp 0x18001486a