Function at 0x140089c90
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov dword [rcx + 0x1c], r8d
mov dword [rcx + 0x20], r9d
mov rdi, rdx
mov rbx, rcx
test r9d, r9d
je 0x140089dd3
cmp qword [rcx + 0xc8], rsi
jne 0x140089dd3
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140089d57
xor edx, edx
lea r8d, [rsi + 0x5c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rax + 2]
lea rax, [rsp + 0x248]
sub rax, rcx
sar rax, 1
cmp rax, 0xf
jb 0x140089d57
movups xmm0, xmmword [str.rtcompress.dll]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x140247230]
movsd qword [rcx + 0x10], xmm0
mov eax, dword [0x140247238]
mov dword [rcx + 0x18], eax
movzx eax, word [0x14024723c]
mov word [rcx + 0x1c], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov qword [rbx + 0xc8], rax
lea rdx, str.OpusEncoderInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xc8]
lea rdx, str.OpusEncode
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xc8]
lea rdx, str.OpusEncoderRelease
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0xc0], rax
movzx edx, word [rcx + 2]
mov ecx, dword [rcx + 4]
call qword [rbx + 0xb0]
mov qword [rbx + 0xd8], rax
jmp 0x140089ef5
test r8d, r8d
je 0x140089ef5
cmp qword [rcx + 0xc8], rsi
jne 0x140089ef5
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140089e6f
xor edx, edx
lea rcx, [rsp + 0x250]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rax + 2]
lea rax, [rsp + 0x458]
sub rax, rcx
sar rax, 1
cmp rax, 0xf
jb 0x140089e6f
movups xmm0, xmmword [str.rtcompress.dll]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x140247230]
movsd qword [rcx + 0x10], xmm0
mov eax, dword [0x140247238]
mov dword [rcx + 0x18], eax
movzx eax, word [0x14024723c]
mov word [rcx + 0x1c], ax
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov qword [rbx + 0xc8], rax
lea rdx, str.adpcm_create_context
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xc8]
lea rdx, str.adpcm_encode_block
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xc8]
lea rdx, str.adpcm_free_context
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x30]
mov qword [rbx + 0xa8], rax
xor r8d, r8d
mov rax, qword [rbx + 0x38]
xor edx, edx
movzx ecx, word [rax + 2]
call qword [rbx + 0x98]
mov qword [rbx + 0xd0], rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140089f0a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140089f55
cmp qword [rbx + 0x38], rsi
je 0x140089f55
test rdi, rdi
je 0x140089f2d
mov qword [rbx + 0x88], rdi
lea rdx, [0x140089c10]
mov rcx, qword [rdi + 8]
call qword [0x140267e68]
mov qword [rsp + 0x28], rsi
lea r8, [0x140089420]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
mov dword [rbx + 0x18], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
xor eax, eax
jmp 0x140089f5a
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret