Function at 0x1400d6190
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403b88b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [0x1400d64f0]
call qword [sym.imp.DSOUND.dll_DirectSoundEnumerateW]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400d61f2
nop dword [rax + rax]
mov rax, qword [rcx]
cmp rax, qword [rdi + 0x288]
jne 0x1400d61e9
mov rax, qword [rcx + 8]
cmp rax, qword [rdi + 0x290]
je 0x1400d6211
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400d61d0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140281bf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rdi + 0x18], rcx
xorps xmm1, xmm1
mov dword [rsp + 0x30], 0x28
xor r8d, r8d
mov dword [rsp + 0x34], 0x11
lea rdx, [rdi + 0x50]
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call qword [sym.imp.DSOUND.dll_DirectSoundCreate]
test eax, eax
js 0x1400d61f2
test rsi, rsi
je 0x1400d6264
mov rcx, qword [rdi + 0x50]
mov r8d, 2
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x1400d61f2
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 0x1400d61f2
xor ebp, ebp
lea rdx, [rdi + 0x28]
mov dword [rdi + 0x34], ebp
lea r8, [rdi + 0x20]
mov qword [rdi + 0x40], rbp
mov ecx, 0xfffe
mov qword [rdi + 0x48], rbp
xor r9d, r9d
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 [0x140329098]
movups xmmword [rdi + 0x228], xmm0
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400d61f2
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]
mov ebx, ebp
lea rsi, [rdi + 0x68]
nop
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 0x1400d61f2
inc ebx
add rsi, 8
cmp ebx, 4
jl 0x1400d6370
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 0x1400d61f2
lea rax, [rdi + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d6400]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x1400d61f2
mov eax, 1
jmp 0x1400d61f4