Function at 0x1400355f0
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, [0x140348e98]
xor edx, edx
lea r8d, [rdi + 0x17]
lea rcx, [0x140348e88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
js 0x140035941
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 0x140035941
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400359dc
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
lea rbx, [0x140345b70]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140015a40
or rsi, 0xffffffffffffffff
test al, al
jne 0x1400356da
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400356c0
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400105e0
nop
movups xmm0, xmmword [0x140348e78]
movaps xmmword [rbp + 0x17], xmm0
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 1]
call fcn.140033ac0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.1400157c0
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003571d
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 0x140035926
mov r12d, edi
cmp dword [rbp + 0x77], edi
jbe 0x1400358ea
mov r15d, edi
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400359f2
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 0x1400358c4
mov ecx, 0x450
call fcn.1400f8110
mov qword [rbp + 0xf], rax
test rax, rax
je 0x1400357a2
mov rcx, rax
call fcn.140015bc0
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 0x14003586a
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400359e7
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 0x140035849
mov rax, qword [rbp - 0x39]
cmp dword [rax - 0x10], 0
jl 0x14003584d
lea rdx, str.rtstereomixwave
mov rcx, rax
call fcn.14029fa1c
mov rcx, rax
test rax, rax
je 0x140035849
mov rax, qword [rbp - 0x39]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x14003584d
mov r15d, 1
mov rdx, qword [rdi + 0x118]
test rdx, rdx
jne 0x140035830
xor eax, eax
jmp 0x14003583d
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140035833
mov r8d, eax
lea rcx, [rbp - 0x19]
call fcn.1400105e0
mov rax, qword [rbp - 0x39]
lea rdx, [rax - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140035866
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 0x1400358c4
mov qword [rbp - 0x31], rdi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r9, [0x1403402b8]
xor edx, edx
lea r8d, [rdi + 1]
lea rcx, [0x1403402c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
jns 0x140035985
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400358c4
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 0x1400358dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
cmp r12d, dword [rbp + 0x77]
jb 0x140035742
mov r15d, dword [rbp + 0x6f]
test r15d, r15d
je 0x140035926
mov dword [rbp + 0x7f], 0
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, r13
lea r8, [0x140035a00]
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 0x140035941
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 0x140035958
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140035967
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 0x1400359b6
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 0x1400359cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x140035926
jmp 0x1400358ee
mov ecx, 0x80004005
call fcn.14000de90
nop
mov ecx, 0x80004005
call fcn.14000de90
nop
mov ecx, 0x80004005
call fcn.14000de90
int3