Function at 0x1400d9420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [0x1400d97a0]
call qword [sym.imp.DSOUND.dll_DirectSoundEnumerateW]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400d9482
nop
mov rax, qword [rcx]
cmp rax, qword [rdi + 0x288]
jne 0x1400d9479
mov rax, qword [rcx + 8]
cmp rax, qword [rdi + 0x290]
je 0x1400d94a3
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400d9460
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14029d880
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
mov qword [rdi + 0x18], rcx
mov qword [rsp + 0x30], rax
lea rdx, [rdi + 0x50]
xor r8d, r8d
mov dword [rsp + 0x30], 0x28
mov dword [rsp + 0x34], 0x11
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.DSOUND.dll_DirectSoundCreate]
test eax, eax
js 0x1400d9482
test rsi, rsi
je 0x1400d94ff
mov rcx, qword [rdi + 0x50]
mov r8d, 2
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x1400d9482
mov rcx, qword [rdi + 0x50]
lea r8, [rdi + 0x58]
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400d9482
xor eax, eax
lea rdx, [rdi + 0x28]
mov qword [rdx], rax
lea r8, [rdi + 0x20]
mov qword [rdx + 8], rax
mov ecx, 0xfffe
mov qword [rdx + 0x10], rax
xor r9d, r9d
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov eax, dword [rdi + 0x23c]
imul eax, dword [rdi + 0x204]
mov dword [rdx], 0x28
mov dword [rdi + 0x2c], 0x8180
mov dword [rdi + 0x30], eax
lea rax, [rdi + 0x210]
mov qword [rdi + 0x38], rax
mov word [rax], cx
mov rcx, qword [rdi + 0x38]
movzx eax, word [rdi + 0x204]
mov word [rcx + 2], ax
mov rax, qword [rdi + 0x38]
movzx ecx, word [rdi + 0x204]
add cx, cx
mov word [rax + 0xc], cx
mov rcx, qword [rdi + 0x38]
movzx eax, word [rcx + 0xc]
imul eax, dword [rcx + 4]
mov dword [rcx + 8], eax
mov ecx, 0x10
mov rax, qword [rdi + 0x38]
mov word [rax + 0xe], cx
mov ecx, 0x16
mov rax, qword [rdi + 0x38]
mov word [rax + 0x10], cx
mov eax, dword [rdi + 0x208]
mov rcx, qword [rdi + 0x50]
mov dword [rdi + 0x224], eax
movzx eax, word [rdi + 0x21e]
mov word [rdi + 0x222], ax
movups xmm0, xmmword [0x140346678]
movups xmmword [rdi + 0x228], xmm0
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400d9482
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x80]
xor ebx, ebx
lea rsi, [rdi + 0x68]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], rax
test rax, rax
je 0x1400d9482
inc ebx
add rsi, 8
cmp ebx, 4
jl 0x1400d9620
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x60], rax
test rax, rax
je 0x1400d9482
lea rax, [rdi + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d96b0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x1400d9482
mov eax, 1
jmp 0x1400d9484