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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov eax, dword [r8]
mov ecx, 7
cmp eax, 2
jne 0x1400a8e71
lea rdx, str.InitEncoder:_Creating_HEVC_encoder...
call fcn.140083970
mov r12, qword [0x140230b40]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x1400a8e68
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.AMFVideoEncoderHW_HEVC
jmp 0x1400a8eec
cmp eax, 3
jne 0x1400a8ec3
lea rdx, str.InitEncoder:_Creating_AV1_encoder...
call fcn.140083970
mov r12, qword [0x140230b40]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x1400a8e98
mov rax, qword [rcx]
call qword [rax + 8]
xor r14d, r14d
mov qword [r15 + 0x28], r14
mov rax, qword [r12]
lea r9, [r15 + 0x28]
lea r8, str.AMFVideoEncoderHW_AV1
mov rdx, rdi
mov rcx, r12
call qword [rax + 8]
mov r12d, eax
mov r13d, dword [rsi + 0x18]
mov eax, dword [rsi + 0x1c]
jmp 0x1400a8f0e
lea rdx, str.InitEncoder:_Creating_AVC_encoder...
call fcn.140083970
mov r12, qword [0x140230b40]
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x1400a8ee5
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.AMFVideoEncoderVCE_AVC
xor r14d, r14d
mov qword [r15 + 0x28], r14
mov rax, qword [r12]
lea r9, [r15 + 0x28]
mov rdx, rdi
mov rcx, r12
call qword [rax + 8]
mov r12d, eax
mov eax, dword [rsi + 0x14]
mov r13d, dword [rsi + 0x10]
mov dword [rsp + 0x30], eax
test r12d, r12d
je 0x1400a8fd2
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x90]
call fcn.140152140
lea rcx, [rbp + 0x90]
call fcn.14006dfd0
nop
mov ecx, r12d
call fcn.14000c8c0
mov rbx, rax
lea rdx, str.InitEncoder:_CreateComponent_encoder_failed
lea rcx, [rbp + 0xa0]
call fcn.140053240
mov rcx, rax
lea rdx, str._Error:
call fcn.140053240
mov rcx, rax
mov rdx, rbx
call fcn.140053240
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xa8]
call fcn.140051c70
lea rax, [rsp + 0x50]
mov qword [rbp + 0x10], rax
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], r14
mov edx, 2
lea r8d, [rdx + 4]
call fcn.140083ad0
nop
lea rcx, [rsp + 0x50]
call fcn.140004ff0
nop
lea rcx, [rbp + 0x90]
call fcn.1400678c0
mov eax, r12d
jmp 0x1400a95be
mov rbx, qword [r15 + 0x58]
cmp rbx, rdi
je 0x1400a8ffa
mov qword [r15 + 0x58], rdi
test rdi, rdi
je 0x1400a8fec
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test rbx, rbx
je 0x1400a8ffa
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rsi + 0x20]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsi + 0x30]
movaps xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rsi + 0x50]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rsi + 0x60]
movaps xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rsi + 0x70]
movsd qword [rbp - 0x20], xmm1
lea rcx, [rsp + 0x70]
call fcn.1400b66b0
mov qword [r15 + 0xe0], rax
test rax, rax
jne 0x1400a906b
lea rdx, str.InitEncoder:_Failed_to_get_encoder_profile
lea ecx, [rax + 7]
call fcn.1400838f0
mov eax, 0xd
jmp 0x1400a95be
movups xmm0, xmmword [rsi]
movups xmmword [r15 + 0x60], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r15 + 0x70], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [r15 + 0x80], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [r15 + 0x90], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [r15 + 0xa0], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [r15 + 0xb0], xmm1
movups xmm0, xmmword [rsi + 0x60]
movups xmmword [r15 + 0xc0], xmm0
movsd xmm1, qword [rsi + 0x70]
movsd qword [r15 + 0xd0], xmm1
lea rdx, [rax + 8]
lea rcx, [rbp + 0x68]
call fcn.140006b00
nop
lea r8, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae r8, qword [rbp + 0x68]
lea rdx, str.InitEncoder:_Profile__s
mov ecx, 7
call fcn.140083970
mov edi, dword [rsi + 0x64]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14010be70
nop
cmp qword [rax + 0x18], 8
jb 0x1400a9110
mov rax, qword [rax]
mov r8, rax
lea rdx, str.InitEncoder:_Input_surface_type__s
mov ecx, 7
call fcn.140083970
nop
lea rcx, [rsp + 0x50]
call fcn.140004ff0
mov eax, dword [rsi + 0x40]
test eax, eax
jne 0x1400a913f
lea r8, str.Balanced
jmp 0x1400a9154
lea rcx, str.Speed
lea r8, str.Quality
cmp eax, 1
cmove r8, rcx
lea rdx, str.InitEncoder:_Preset__s
mov ecx, 7
call fcn.140083970
mov r12d, dword [rsi + 0x24]
mov r8d, r12d
lea rdx, str.InitEncoder:_Bit_rate__d
mov ecx, 7
call fcn.140083970
mov r8d, dword [rsi + 0x20]
lea rdx, str.InitEncoder:_Frame_rate__d
mov ecx, 7
call fcn.140083970
mov r8d, r13d
lea rdx, str.InitEncoder:_Video_Width__d
mov ecx, 7
call fcn.140083970
mov r8d, dword [rsp + 0x30]
lea rdx, str.InitEncoder:_Video_Height__d
mov ecx, 7
call fcn.140083970
mov r8d, dword [rsi + 0x2c]
lea rdx, str.InitEncoder:_Audio_bit_rate__d
mov ecx, 7
call fcn.140083970
mov r8d, dword [rsi + 0x28]
lea rdx, str.InitEncoder:_Audio_sample_rate__d
mov ecx, 7
call fcn.140083970
call fcn.140061c90
mov rcx, rax
call fcn.140024730
test al, al
je 0x1400a929f
mov qword [rbp + 0x10], r14
mov rcx, qword [r15 + 0x28]
test rcx, rcx
je 0x1400a9241
mov dword [rsp + 0x38], 0x75366ad4
mov dword [rsp + 0x3c], 0x430b504c
mov dword [rsp + 0x40], 0x21ade2bb
mov dword [rsp + 0x44], 0x720f0882
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x38]
call qword [rax + 0x10]
test eax, eax
jne 0x1400a9241
mov rbx, qword [rbp + 0x10]
jmp 0x1400a9248
mov rbx, r14
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x60], rbx
test rbx, rbx
je 0x1400a9290
call fcn.140061c90
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140024d00
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400a9270
mov rdx, qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x50]
call fcn.140004ff0
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x48]
nop
test rbx, rbx
je 0x1400a929f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rsi + 0x20]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsi + 0x30]
movaps xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rsi + 0x50]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rsi + 0x60]
movaps xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rsi + 0x70]
movsd qword [rbp - 0x20], xmm1
mov rcx, qword [r15 + 0x28]
mov qword [rbp + 0x10], rcx
test rcx, rcx
je 0x1400a92f3
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [r15 + 0xe0]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x10]
call qword [rax]
movsxd rbx, eax
test eax, eax
je 0x1400a933f
lea rdx, str.InitEncoder:_Failed_to_set_encoder_properties
mov ecx, 7
call fcn.1400838f0
call fcn.1400616f0
mov r8, rbx
xor r9d, r9d
mov edx, 0x807f
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400a95b3
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movss dword [rbp + 0x20], xmm0
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov ecx, 0x50
call fcn.14014f310
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x38], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x58], 8
movss xmm0, dword [0x1401f9c0c]
movss dword [rbp + 0x20], xmm0
mov r8, rax
mov edx, 0x10
lea rcx, [rbp + 0x38]
call fcn.1400088d0
nop
lea r8, [rbp + 0x20]
call fcn.140007c40
cmp qword [rbp + 0x30], 0
jbe 0x1400a94d7
lea rdx, str.InitEncoder:_Setting_extra_encoder_properties...
mov ecx, 7
call fcn.140083970
mov rax, qword [rbp + 0x28]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a94d7
lea rdx, [rbx + 0x30]
cmp qword [rdx + 0x18], 8
jb 0x1400a93f2
mov rdx, qword [rdx]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400a9412
lea rcx, [rsp + 0x50]
call fcn.140005060
nop
call fcn.14016f93c
mov r12, rax
lea rdi, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdi, qword [rsp + 0x50]
mov dword [rax], r14d
mov r8d, 0xa
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.14015f8e8
cmp rdi, qword [rbp + 0x10]
je 0x1400a95e8
cmp dword [r12], 0x22
je 0x1400a95f5
lea rdx, [rbx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1400a9479
mov rdx, qword [rdx]
mov rcx, qword [r15 + 0x28]
mov dword [rsp + 0x38], 2
cdqe
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rbp - 0x10], xmm0
movsd xmm1, qword [rsp + 0x48]
movsd qword [rbp], xmm1
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x38]
call fcn.14000b9c0
nop
lea rcx, [rsp + 0x50]
call fcn.140004ff0
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rbp + 0x28]
jne 0x1400a93e4
mov edi, dword [rsi + 0x64]
mov r12d, dword [rsi + 0x24]
mov dword [r15 + 0x50], edi
mov rcx, qword [r15 + 0x28]
mov rax, qword [rcx]
mov r9d, dword [rsp + 0x30]
mov r8d, r13d
mov edx, edi
call qword [rax + 0x88]
movsxd rbx, eax
test eax, eax
je 0x1400a952c
mov r8d, ebx
lea rdx, str.InitEncoder:_Init_call_on_encoder_component_failed:__d
mov ecx, 7
call fcn.1400838f0
call fcn.1400616f0
mov r8, rbx
xor r9d, r9d
mov edx, 0x807f
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400a95a9
mov dword [r15 + 0xd8], r14d
mov qword [r15 + 0xe8], r14
call fcn.140062580
mov rcx, rax
mov r8d, r12d
mov edx, 0x11
call fcn.14010d160
call fcn.140062580
mov rcx, rax
mov r8d, dword [rsi + 0x10]
mov edx, 0xe
call fcn.14010d160
call fcn.140062580
mov rcx, rax
mov r8d, dword [rsi + 0x14]
mov edx, 0xf
call fcn.14010d160
call fcn.140062580
mov rcx, rax
mov r8d, dword [rsi + 0x20]
mov edx, 0x10
call fcn.14010d160
call fcn.140062580
mov rcx, rax
mov r8d, dword [rsi]
mov edx, 0x12
call fcn.14010d160
mov ebx, r14d
lea rcx, [rbp + 0x20]
call fcn.1400a9620
nop
lea rcx, [rbp + 0x68]
call fcn.140004ff0
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_stoi_argument
call fcn.140128a7c
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.140128ac4
int3