Function at 0x14012bb10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [0x14012be70]
call qword [sym.imp.DSOUND.dll_DirectSoundEnumerateW]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14012bb72
nop dword [rax + rax]
mov rax, qword [rcx]
cmp rax, qword [rdi + 0x288]
jne 0x14012bb69
mov rax, qword [rcx + 8]
cmp rax, qword [rdi + 0x290]
je 0x14012bb91
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14012bb50
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402ecc20
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 0x14012bb72
test rsi, rsi
je 0x14012bbe4
mov rcx, qword [rdi + 0x50]
mov r8d, 2
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x14012bb72
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 0x14012bb72
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, reloc.OLEAUT32.dll_SafeArrayGetDim
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 [0x140393e80]
movups xmmword [rdi + 0x228], xmm0
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x14012bb72
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 0x14012bb72
inc ebx
add rsi, 8
cmp ebx, 4
jl 0x14012bcf0
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 0x14012bb72
lea rax, [rdi + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14012bd80]
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 0x14012bb72
mov eax, 1
jmp 0x14012bb74