Function at 0x140033550
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov r13, rcx
xor edi, edi
mov qword [rbp - 9], rdi
mov qword [rbp - 0x21], rdi
mov dword [rbp + 0x77], edi
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [0x14032bce8]
xor edx, edx
lea r8d, [rdi + 0x17]
lea rcx, [0x14032bcd8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
js 0x1400338a1
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea r9, [rbp - 0x21]
lea edx, [rdi + 1]
mov r8d, 0x1000000f
call qword [rax + 0x18]
mov r14d, eax
test eax, eax
js 0x1400338a1
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x140033952
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
lea rbx, [0x140328530]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140014ab0
lea rsi, [rdi - 1]
test al, al
jne 0x14003363a
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140033620
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140010390
nop
movups xmm0, xmmword [0x14032bcc8]
movaps xmmword [rbp + 0x17], xmm0
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 1]
call fcn.140031a10
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140014890
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003367d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
call qword [rax + 0x18]
mov r14d, eax
test eax, eax
js 0x140033886
mov r12d, edi
cmp dword [rbp + 0x77], edi
jbe 0x14003384a
mov r15d, edi
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x140033947
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
lea r8, [rbp - 0x11]
mov edx, r12d
call qword [rax + 0x20]
mov r14d, eax
test eax, eax
js 0x140033824
mov ecx, 0x450
call fcn.1400f48fc
mov qword [rbp + 0xf], rax
test rax, rax
je 0x140033702
mov rcx, rax
call fcn.140014c50
mov rdi, rax
mov rax, qword [rdi]
mov r8, r13
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call qword [rax + 0x68]
test eax, eax
je 0x1400337ca
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x14003393c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
mov rax, qword [rdi]
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [rax + 0x78]
test eax, eax
je 0x1400337a9
mov rax, qword [rbp - 0x39]
cmp dword [rax - 0x10], 0
jl 0x1400337ad
lea rdx, str.rtstereomixwave
mov rcx, rax
call fcn.140283820
mov rcx, rax
test rax, rax
je 0x1400337a9
mov rax, qword [rbp - 0x39]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x1400337ad
mov r15d, 1
mov rdx, qword [rdi + 0x118]
test rdx, rdx
jne 0x140033790
xor eax, eax
jmp 0x14003379d
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140033793
mov r8d, eax
lea rcx, [rbp - 0x19]
call fcn.140010390
mov rax, qword [rbp - 0x39]
lea rdx, [rax - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400337c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x19]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
xor edi, edi
mov qword [rbp - 0x11], rdi
test r15d, r15d
je 0x140033824
mov qword [rbp - 0x31], rdi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r9, [0x140322af8]
xor edx, edx
lea r8d, [rdi + 1]
lea rcx, [0x140322b08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
jns 0x1400338e5
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140033824
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003383d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
cmp r12d, dword [rbp + 0x77]
jb 0x1400336a2
mov r15d, dword [rbp + 0x6f]
test r15d, r15d
je 0x140033886
mov dword [rbp + 0x7f], 0
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, r13
lea r8, [0x140033960]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r13 + 0x1d58], rax
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400338a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
not r14d
shr r14d, 0x1f
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400338b8
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1400338c7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, r14d
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
mov r15d, dword [rbp + 0x6f]
mov r8d, r15d
mov rdx, rbx
call qword [rax + 0x68]
mov r14d, eax
test eax, eax
mov eax, 1
cmovns edi, eax
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140033916
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003392f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x140033886
jmp 0x14003384e
mov ecx, 0x80004005
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
int3