Function at 0x140016d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x3930
call fcn.140029ab0
sub rsp, rax
mov rax, qword [0x14003e3b8]
xor rax, rsp
mov qword [rsp + 0x3920], rax
lea rax, [rcx + 0xf00]
mov dword [rcx + 0x900], 0x1020000
mov qword [rcx + 0x920], rax
mov rbx, rcx
mov eax, dword [rcx + 0x50]
xor edx, edx
mov dword [rcx + 0x910], eax
mov r8d, 0x38f8
mov eax, dword [rcx + 0x4c]
mov dword [rcx + 0x90c], eax
mov eax, dword [rcx + 0x54]
mov dword [rcx + 0x914], eax
mov eax, dword [rcx + 0x58]
mov dword [rcx + 0x918], eax
movzx eax, byte [rcx + 0x4220]
mov dword [rcx + 0x91c], eax
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], 0x1020000
mov dword [rsp + 0x24], 0x1020000
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x108]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x908]
mov edx, dword [rbx + 0x904]
mov rcx, qword [rbx + 0x4200]
call rax
mov edi, eax
test eax, eax
je 0x140016e5a
mov edx, eax
lea rcx, str.mtEncGetPresetConfig_failed:__d_n
call fcn.140007b50
mov ecx, edi
call fcn.140015f10
jmp 0x140017108
mov rcx, qword [rbx + 0x920]
lea rdx, [rsp + 0x28]
mov r8d, 0x3300
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbx + 0x90c]
xor r8d, r8d
mov ecx, dword [rbx + 0x80]
mov dword [rbx + 0x928], eax
mov eax, dword [rbx + 0x910]
mov dword [rbx + 0x92c], eax
mov eax, dword [rbx + 0x28]
shr eax, 0x16
not eax
mov dword [rbx + 0xf04], 1
and eax, 1
mov dword [rbx + 0x3c20], eax
cmp ecx, 1
jbe 0x140016ec6
mov eax, dword [rbx + 0x88]
test eax, eax
js 0x140016ed2
inc eax
mov dword [rbx + 0xf0c], eax
jmp 0x140016ed2
mov dword [rbx + 0xf0c], r8d
mov ecx, 1
mov dword [rbx + 0xf08], ecx
mov eax, dword [rbx + 0x64]
test eax, eax
jle 0x140016ee5
mov dword [rbx + 0xf24], eax
cmp dword [rbx + 0x908], 1
jne 0x140016f0c
mov dword [rbx + 0xf18], 0x1c
mov dword [rbx + 0xf1c], 0x1f
mov dword [rbx + 0xf20], 0x19
cmp dword [rbx + 0x6c], 1
mov eax, r8d
setne al
inc eax
mov dword [rbx + 0xf14], eax
cmp dword [rbx + 0x3c10], 1
jbe 0x140016f40
mov ecx, dword [rbx + 0xf0c]
cmp ecx, 1
jle 0x140016f40
mov eax, ecx
cdq
sub eax, edx
mov edx, 4
sar eax, 1
jmp 0x140016f5d
mov ecx, dword [rbx + 0xf0c]
cmp ecx, 1
jle 0x140016f55
mov eax, 1
lea edx, [rax + 1]
jmp 0x140016f5d
mov eax, r8d
mov edx, 1
add eax, ecx
mov ecx, dword [rbx + 0x904]
mov dword [rbx + 0x4218], eax
add eax, edx
mov dword [rbx + 0x421c], eax
sub ecx, 1
je 0x140017044
cmp ecx, 1
jne 0x1400170d2
mov eax, dword [rbx + 0xf08]
mov dword [rbx + 0x1818], eax
mov eax, dword [rbx + 0x44]
mov dword [rbx + 0x1840], eax
mov eax, dword [rbx + 0x3c]
mov dword [rbx + 0x1838], eax
mov eax, dword [rbx + 0x40]
mov dword [rbx + 0x1834], ecx
mov dword [rbx + 0x1828], ecx
mov dword [rbx + 0x1844], ecx
mov ecx, r8d
mov dword [rbx + 0x183c], eax
mov eax, dword [rbx + 0x58]
mov qword [rbx + 0x1810], r8
mov dword [rbx + 0x1848], eax
mov eax, dword [rbx + 0x54]
mov dword [rbx + 0x184c], eax
mov qword [rbx + 0x182c], 5
cmp dword [rbx + 0x38], 2
sete cl
inc ecx
cmp dword [rbx + 0x38], 2
sete r8b
add r8d, 0x10
mov dword [rbx + 0xf04], r8d
mov dword [rbx + 0x38], ecx
mov eax, dword [rbx + 0x90]
cmp eax, 0x40
je 0x14001701a
cmp eax, 0xa1
jne 0x1400170d2
mov dword [rbx + 0xf04], 0x11
mov dword [rbx + 0x38], 2
and dword [rbx + 0x181c], 0xffffd7ff
or dword [rbx + 0x181c], 0x1000
jmp 0x1400170d2
mov eax, dword [rbx + 0xf08]
mov dword [rbx + 0x1214], eax
mov dword [rbx + 0x1210], r8d
mov dword [rbx + 0x122c], 1
mov eax, dword [rbx + 0x44]
mov dword [rbx + 0x1238], eax
mov eax, dword [rbx + 0x3c]
mov dword [rbx + 0x1230], eax
mov eax, dword [rbx + 0x40]
mov dword [rbx + 0x1234], eax
mov qword [rbx + 0x1224], 5
mov dword [rbx + 0x1220], 1
mov dword [rbx + 0x123c], 1
mov eax, dword [rbx + 0x58]
mov dword [rbx + 0x1240], eax
mov eax, dword [rbx + 0x54]
mov dword [rbx + 0x1244], eax
mov eax, dword [rbx + 0x38]
test eax, eax
je 0x1400170c8
cmp eax, 3
sete r8b
add r8d, 3
mov dword [rbx + 0xf04], r8d
jmp 0x1400170d2
mov dword [rbx + 0xf04], 2
mov rax, qword [rbx + 0x110]
lea rdx, [rbx + 0x900]
mov rcx, qword [rbx + 0x4200]
call rax
mov ebx, eax
test eax, eax
je 0x140017106
mov edx, eax
lea rcx, str.mtEncInitEncoder_failed:__d_n
call fcn.140007b50
mov ecx, ebx
call fcn.140015f10
jmp 0x140017108
xor eax, eax
mov rcx, qword [rsp + 0x3920]
xor rcx, rsp
call fcn.1400297b0
lea r11, [rsp + 0x3930]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret