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

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0xd60
mov rax, qword [0x140056038]
xor rax, rsp
mov qword [rsp + 0xd50], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xd20
xor r14d, r14d
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0xf006000c
cmp qword [rbx + 0x2028], r14
jne 0x14002abe3
cmp qword [rbx + 0x2040], r14
je 0x14002abec
cmp qword [rbx + 0x100], r14
jne 0x14002abf6
mov eax, 0xffffffea
jmp 0x14002aeb7
mov qword [rsp + 0xd90], rdi
test rsi, rsi
je 0x14002ad47
cmp qword [rsi + 0xc8], r14
je 0x14002ad47
mov r9, qword [rbx + 0x2090]
test r9, r9
je 0x14002ad3d
mov r10, qword [rbx + 0x2088]
mov rdx, qword [rbx + 0x2080]
mov rcx, r10
dec rdx
and ecx, 1
mov rax, r10
shr rax, 1
and rdx, rax
mov rax, qword [rbx + 0x2078]
mov rax, qword [rax + rdx*8]
mov r14, qword [rax + rcx*8]
lea rax, [r9 - 1]
mov qword [rbx + 0x2090], rax
test rax, rax
je 0x14002ac67
lea rax, [r10 + 1]
mov qword [rbx + 0x2088], rax
test r14, r14
je 0x14002ad3d
mov rcx, rbx
call fcn.1400282e0
test eax, eax
js 0x14002aeaf
mov rcx, rbx
call fcn.14002a980
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14002a2f0
mov rcx, rbx
mov edi, eax
call fcn.140028320
test eax, eax
js 0x14002aeaf
test edi, edi
je 0x14002acba
mov eax, edi
jmp 0x14002aeaf
mov rax, qword [r14]
mov ecx, dword [rbx + 0xa0]
mov qword [rsp + 0x58], rax
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x70], eax
mov eax, dword [r14 + 0x14]
mov dword [rsp + 0x34], eax
mov eax, dword [r14 + 0x18]
mov dword [rsp + 0x38], eax
mov eax, dword [r14 + 0x1c]
mov dword [rsp + 0x3c], eax
mov rax, qword [r14 + 0x28]
mov qword [rsp + 0x60], rax
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x74], 1
test ecx, ecx
js 0x14002ad27
cmp dword [rsi + 0x7c], 1
jne 0x14002ad27
xor eax, eax
test ecx, ecx
setne al
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsi + 0x88]
mov qword [rsp + 0x48], rax
jmp 0x14002ad4f
mov rax, qword [rsi + 0x88]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0
jmp 0x14002ad4f
mov eax, 0xfffffff5
jmp 0x14002aeaf
mov dword [rsp + 0x40], 8
cmp qword [rbx + 0x2040], 0
jne 0x14002ad77
mov rax, qword [rbx + 0x108]
mov rcx, qword [rbx + 0x2028]
mov rdx, qword [rax + 0x50]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
jne 0x14002adbd
mov rax, qword [rbx + 0x1a0]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x100]
call rax
cmp qword [rbx + 0x2040], 0
mov edi, eax
jne 0x14002adc4
mov rcx, qword [rbx + 0x108]
mov qword [rsp + 0x20], 0
mov rdx, qword [rcx + 0x58]
lea rcx, [rsp + 0x20]
call rdx
mov ecx, eax
neg ecx
sbb edx, edx
test eax, eax
je 0x14002adc4
mov eax, edx
jmp 0x14002aeaf
test edi, edi
je 0x14002adf0
cmp edi, 0x11
je 0x14002adf0
cmp dword [rsp + 0x40], 8
je 0x14002adee
mov edx, edi
lea rcx, str.nvEncEncodePicture_failed:__d
call fcn.140002630
mov ecx, edi
call fcn.140027c50
jmp 0x14002aeaf
xor edi, edi
test rsi, rsi
je 0x14002ae21
cmp qword [rsi + 0xc8], 0
je 0x14002ae21
lea rcx, [rbx + 0x20d8]
mov rdx, r14
call fcn.140027040
mov rdx, qword [rsi + 0x88]
lea rcx, [rbx + 0x21a8]
call fcn.140027040
test edi, edi
jne 0x14002aead
mov r8, qword [rbx + 0x20f8]
test r8, r8
je 0x14002aead
mov r10, qword [rbx + 0x20f0]
mov rdx, qword [rbx + 0x20e8]
mov rcx, r10
dec rdx
and ecx, 1
mov rax, r10
shr rax, 1
and rdx, rax
mov rax, qword [rbx + 0x20e0]
mov rax, qword [rax + rdx*8]
mov rdx, qword [rax + rcx*8]
lea rax, [r8 - 1]
mov qword [rbx + 0x20f8], rax
test rax, rax
je 0x14002ae78
lea rax, [r10 + 1]
lea rcx, [rbx + 0x2140]
mov qword [rbx + 0x20f0], rax
call fcn.140027040
cmp byte [rbx + 0x1ac2c], 0
je 0x14002aea1
lea rcx, [rbx + 0x1ac80]
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
mov r8, qword [rbx + 0x20f8]
test r8, r8
jne 0x14002ae35
xor eax, eax
mov rdi, qword [rsp + 0xd90]
mov rcx, qword [rsp + 0xd50]
xor rcx, rsp
call fcn.140037fe0
add rsp, 0xd60
pop r14
pop rsi
pop rbx
ret