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

Disassembly:
mov qword [rsp + 0x10], 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 rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x20], r9
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
test rdx, rdx
je 0x14003d4d4
mov qword [rsp + 0x58], rdx
mov eax, 1
lock xadd dword [rdx], eax
inc eax
cmp eax, 1
jle 0x14003d4c2
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdx + 4], ecx
je 0x14003d4d1
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rbx + 4], ecx
inc dword [rbx + 8]
lea rdx, str.HEVC_Encoder_Caps
mov ecx, 6
call fcn.140083970
mov rbx, qword [rdi]
mov qword [rsp + 0x70], rbx
mov qword [rbp + 0x30], r12
movdqa xmm0, xmmword [0x1401f9e10]
movdqu xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x3c], 0x5f5e100
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x44], 0x3bc40
mov word [rsp + 0x48], 0
mov byte [rsp + 0x4a], 0
mov byte [rsp + 0x28], 0
mov r8d, r12d
test rbx, rbx
setne r8b
lea rdx, str.preExistingEncoder___d
mov ecx, 6
call fcn.140083970
test rbx, rbx
jne 0x14003db5f
mov rbx, qword [0x140230b40]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003d55f
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp + 0x30], r12
mov rax, qword [rbx]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [rax]
mov r12d, eax
mov rbx, qword [rsi + 0x20]
test rbx, rbx
je 0x14003d5a1
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14003d599
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r15d, 1
movzx r13d, r15b
jmp 0x14003d5a8
mov r15d, 1
jmp 0x14003d5a5
mov rbx, qword [rbp + 0x20]
xor r13b, r13b
test r15b, 1
je 0x14003d5bc
test rbx, rbx
je 0x14003d5bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test r13b, r13b
je 0x14003d618
lea rdx, str.GetEncoderBaseCapsHEVC:_Init_AMF_context_with_DX11
mov ecx, 6
call fcn.140083970
mov r15, qword [rbp + 0x30]
mov rbx, qword [rsi + 0x20]
mov rbx, qword [rbx + 8]
mov qword [rsp + 0x68], rbx
test rbx, rbx
je 0x14003d5f2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rax, qword [r15]
mov r8d, 0x6e
mov rdx, rbx
mov rcx, r15
call qword [rax + 0x90]
mov r12d, eax
test rbx, rbx
je 0x14003d618
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test r12d, r12d
je 0x14003d6da
mov ecx, r12d
call fcn.14000c8c0
mov r8, rax
lea rdx, str.GetEncoderBaseCapsHEVC:_Init_AMF_context_failed:_returned__s
mov ecx, 6
call fcn.1400838f0
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003d668
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003d6ac
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003d682
mov dword [rax + 4], 0
mov rbx, 0xffffffffffffffff
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003d6ac
test ecx, ecx
jne 0x14003d6ac
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003d6c6
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003d6d5
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003db48
mov rbx, qword [0x140230b40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d6ef
mov rax, qword [rcx]
call qword [rax + 8]
xor r15d, r15d
mov qword [rdi], r15
mov rax, qword [rbx]
mov r9, rdi
lea r8, str.AMFVideoEncoderHW_HEVC
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
call qword [rax + 8]
test eax, eax
jne 0x14003da76
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003da76
mov dword [rbp - 0x58], 2
mov qword [rbp - 0x50], r15
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rbp], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rbp + 0x10], xmm1
mov rax, qword [rcx]
lea r8, [rbp]
lea rdx, str.HevcUsage
call qword [rax + 0x18]
mov ebx, eax
lea rcx, [rbp - 0x58]
call fcn.14000b9c0
nop
test ebx, ebx
je 0x14003d838
mov ecx, ebx
call fcn.14000c8c0
mov r8, rax
lea rdx, str.GetEncoderBaseCapsHEVC:_SetProperty_AMF_VIDEO_ENCODER_HEVC_USAGE:_AMF_VIDEO_ENCODER_HEVC_USAGE_TRANSCONDING:_returned__s
lea ecx, [r15 + 6]
call fcn.1400838f0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d79e
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d79e
mov qword [rdi], r15
mov rax, qword [rcx]
call qword [rax + 8]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003d7c9
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003d80a
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003d7e0
mov dword [rax + 4], r15d
mov rbx, 0xffffffffffffffff
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003d80a
test ecx, ecx
jne 0x14003d80a
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003d824
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003d833
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003db48
mov dword [rsp + 0x20], 0x3c
mov dword [rsp + 0x24], 1
mov rcx, qword [rdi]
mov dword [rbp - 0x70], 7
mov rax, qword [rsp + 0x20]
mov qword [rbp - 0x68], rax
movups xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [rbp - 0x10], xmm1
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, str.HevcFrameRate
call qword [rax + 0x18]
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.14000b9c0
nop
test ebx, ebx
je 0x14003d969
mov ecx, ebx
call fcn.14000c8c0
mov r8, rax
lea rdx, str.GetEncoderBaseCapsHEVC:_SetProperty_AMF_VIDEO_ENCODER_HEVC_FRAMERATE:_60_1:_returned__s
mov ecx, 6
call fcn.1400838f0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d8cf
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d8cf
mov qword [rdi], r15
mov rax, qword [rcx]
call qword [rax + 8]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003d8fa
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003d93b
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003d911
mov dword [rax + 4], r15d
mov rbx, 0xffffffffffffffff
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003d93b
test ecx, ecx
jne 0x14003d93b
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003d955
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003d964
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003db48
lea rdx, str.GetEncoderBaseCapsHEVC:_Initing_HEVC_encoder:_NV12__1920x1080_
mov ecx, 6
call fcn.140083970
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov edx, 1
mov r9d, 0x438
mov r8d, 0x780
call qword [rax + 0x88]
test eax, eax
je 0x14003db5f
mov ecx, eax
call fcn.14000c8c0
mov r8, rax
lea rdx, str.GetEncoderBaseCapsHEVC:_Init_HEVC_encoder_failed:_returned__s
mov ecx, 6
call fcn.1400838f0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d9dc
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d9dc
mov qword [rdi], r15
mov rax, qword [rcx]
call qword [rax + 8]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003da07
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003da48
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003da1e
mov dword [rax + 4], r15d
mov rbx, 0xffffffffffffffff
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003da48
test ecx, ecx
jne 0x14003da48
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003da62
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003da71
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003db48
mov ecx, eax
call fcn.14000c8c0
mov r8, rax
lea rdx, str.GetEncoderBaseCapsHEVC:_CreateComponent_encoder_failed:_returned__s
mov ecx, 6
call fcn.1400838f0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003dab3
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003dab3
mov qword [rdi], r15
mov rax, qword [rcx]
call qword [rax + 8]
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003dade
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003db1f
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003daf5
mov dword [rax + 4], r15d
mov rbx, 0xffffffffffffffff
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003db1f
test ecx, ecx
jne 0x14003db1f
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003db39
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003db48
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003e214
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14003e214
mov r13d, 0x870
mov dword [rsp + 0x38], r13d
mov r15d, 0x1000
mov dword [rsp + 0x30], r15d
mov r12d, 0x10
mov dword [rsp + 0x2c], r12d
mov eax, r12d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x28], 1
mov rcx, qword [rdi]
mov qword [rbp + 0x38], 0
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
call qword [rax + 0xd0]
lea rbx, [r12 - 0x11]
test eax, eax
jne 0x14003e0f2
mov r15, rbx
xor r13d, r13d
mov dword [rbp + 0xe8], r13d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0xe8]
lea rdx, str.HevcColorConversion
call qword [rax + 0x20]
test eax, eax
jne 0x14003dc35
mov eax, dword [rbp + 0xe8]
mov r15d, r13d
test eax, eax
je 0x14003dc35
cmp eax, 2
jne 0x14003dbf9
mov r15, qword [rbp + 0xf0]
jmp 0x14003dc35
mov dword [rbp + 0x100], r13d
mov r8d, 2
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0x100]
call fcn.14000d3d0
cmp dword [rbp + 0x100], 0
cmovne r15, qword [rbp + 0x108]
lea rcx, [rbp + 0x100]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0xe8]
call fcn.14000b9c0
nop
mov r8, r15
lea rdx, str.Color_conversion_type:__d
mov ecx, 6
call fcn.140083970
test r15, r15
jne 0x14003dc5f
mov al, 1
jmp 0x14003dc6c
call fcn.140061c90
mov rcx, rax
call fcn.140024120
mov byte [rsp + 0x40], al
movzx r8d, al
lea rdx, str.EFC_Support:__d
mov ecx, 6
call fcn.140083970
mov r15d, r13d
mov dword [rbp + 0x70], r13d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0x70]
lea rdx, str.HevcMaxProfile
call qword [rax + 0x20]
test eax, eax
jne 0x14003dcf0
mov eax, dword [rbp + 0x70]
test eax, eax
je 0x14003dcf0
cmp eax, 2
jne 0x14003dcb7
mov r15d, dword [rbp + 0x78]
jmp 0x14003dcf0
mov dword [rbp + 0x118], r13d
mov r8d, 2
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x118]
call fcn.14000d3d0
cmp dword [rbp + 0x118], 0
cmovne r15d, dword [rbp + 0x120]
lea rcx, [rbp + 0x118]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0x70]
call fcn.14000b9c0
nop
mov r8d, r15d
lea rdx, str.Maximum_profile:__d
mov ecx, 6
call fcn.140083970
mov r15d, r13d
mov dword [rbp + 0x88], r13d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0x88]
lea rdx, str.HevcMaxLevel
call qword [rax + 0x20]
test eax, eax
jne 0x14003dd88
mov eax, dword [rbp + 0x88]
test eax, eax
je 0x14003dd88
cmp eax, 2
jne 0x14003dd4c
mov r15d, dword [rbp + 0x90]
jmp 0x14003dd88
mov dword [rbp + 0x130], r13d
mov r8d, 2
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x130]
call fcn.14000d3d0
cmp dword [rbp + 0x130], 0
cmovne r15d, dword [rbp + 0x138]
lea rcx, [rbp + 0x130]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0x88]
call fcn.14000b9c0
nop
mov r8d, r15d
lea rdx, str.Maximum_level:__d
mov ecx, 6
call fcn.140083970
mov r15d, r13d
mov dword [rbp + 0xa0], r13d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0xa0]
lea rdx, str.HevcMaxBitrate
call qword [rax + 0x20]
test eax, eax
jne 0x14003de23
mov eax, dword [rbp + 0xa0]
test eax, eax
je 0x14003de23
cmp eax, 2
jne 0x14003dde7
mov r15d, dword [rbp + 0xa8]
jmp 0x14003de23
mov dword [rbp + 0x148], r13d
mov r8d, 2
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x148]
call fcn.14000d3d0
cmp dword [rbp + 0x148], 0
cmovne r15d, dword [rbp + 0x150]
lea rcx, [rbp + 0x148]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0xa0]
call fcn.14000b9c0
nop
mov r8d, r15d
lea rdx, str.Maximum_bit_rate:__d
mov ecx, 6
call fcn.140083970
xor r8d, r8d
lea rdx, str.B_frame_and_enhanced_filtering_supported:__d
lea ecx, [r8 + 6]
call fcn.140083970
mov r12d, r13d
mov dword [rbp + 0xb8], r13d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0xb8]
lea rdx, str.HevcNumOfStreams
call qword [rax + 0x20]
test eax, eax
jne 0x14003ded1
mov eax, dword [rbp + 0xb8]
test eax, eax
je 0x14003ded1
cmp eax, 2
jne 0x14003de95
mov r12d, dword [rbp + 0xc0]
jmp 0x14003ded1
mov dword [rbp + 0x160], r13d
mov r8d, 2
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0x160]
call fcn.14000d3d0
cmp dword [rbp + 0x160], 0
cmovne r12d, dword [rbp + 0x168]
lea rcx, [rbp + 0x160]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0xb8]
call fcn.14000b9c0
nop
mov r8d, r12d
lea rdx, str.Max_Number_of_streams:__d
mov ecx, 6
call fcn.140083970
mov dword [rsp + 0x3c], r15d
mov dword [rbp + 0x4c], r13d
mov dword [rbp + 0x40], r13d
mov dword [rbp + 0x44], r13d
mov dword [rbp + 0x48], r13d
mov qword [rbp + 0x60], r13
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea rdx, [rbp + 0x60]
call qword [rax + 0x70]
test eax, eax
jne 0x14003df42
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x4c]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x44]
call qword [rax + 0x20]
nop
mov qword [rbp + 0x68], r13
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea rdx, [rbp + 0x68]
call qword [rax + 0x78]
test eax, eax
jne 0x14003dfca
mov dword [rbp + 0x5c], r13d
mov dword [rbp + 0x54], r13d
mov dword [rbp + 0x58], r13d
mov dword [rbp + 0x50], r13d
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
lea r8, [rbp + 0x54]
lea rdx, [rbp + 0x5c]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x58]
call qword [rax + 0x20]
mov r12d, dword [rbp + 0x4c]
cmp r12d, dword [rbp + 0x5c]
cmovl r12d, dword [rbp + 0x5c]
mov dword [rbp + 0x4c], r12d
mov edx, dword [rbp + 0x44]
cmp edx, dword [rbp + 0x58]
cmovl edx, dword [rbp + 0x58]
mov dword [rbp + 0x44], edx
mov ecx, dword [rbp + 0x40]
cmp dword [rbp + 0x54], ecx
cmovl ecx, dword [rbp + 0x54]
mov dword [rbp + 0x40], ecx
mov r13d, dword [rbp + 0x48]
cmp dword [rbp + 0x50], r13d
cmovl r13d, dword [rbp + 0x50]
mov dword [rbp + 0x48], r13d
jmp 0x14003dfd8
mov r12d, dword [rbp + 0x4c]
mov ecx, dword [rbp + 0x40]
mov edx, dword [rbp + 0x44]
mov r13d, dword [rbp + 0x48]
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x2c], r12d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r13d
mov rcx, qword [rdi]
mov dword [rsp + 0x78], 2
mov qword [rbp - 0x80], 1
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rbp - 0x30], xmm1
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, str.QualityPreset
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x78]
call fcn.14000b9c0
nop
mov dword [rbp + 0xd0], 0
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0xd0]
lea rdx, str.HevcMaxThroughput
call qword [rax + 0x20]
test eax, eax
jne 0x14003e0b4
mov eax, dword [rbp + 0xd0]
xor r15d, r15d
test eax, eax
je 0x14003e0b9
cmp eax, 2
jne 0x14003e076
mov r15, qword [rbp + 0xd8]
jmp 0x14003e0b9
mov dword [rbp + 0x178], r15d
mov r8d, 2
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x178]
call fcn.14000d3d0
cmp dword [rbp + 0x178], 0
cmovne r15, qword [rbp + 0x180]
lea rcx, [rbp + 0x178]
call fcn.14000b9c0
nop
jmp 0x14003e0b9
mov r15, qword [rsp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.14000b9c0
nop
mov dword [rsp + 0x44], r15d
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14003e0db
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14003e0eb
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov r15d, dword [rsp + 0x20]
jmp 0x14003e106
mov r8d, eax
lea rdx, str.GetEncoderBaseCapsHEVC:_GetCaps_failed__using_defaults:__d
mov ecx, 6
call fcn.140083970
cmp qword [rsp + 0x70], 0
jne 0x14003e134
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003e134
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003e134
mov qword [rdi], 0
mov rax, qword [rcx]
call qword [rax + 8]
mov r9d, r13d
mov r8d, r15d
lea rdx, str.Cap_Maximum_size:__dx_d
mov ecx, 6
call fcn.140083970
mov r9d, dword [rsp + 0x50]
mov r8d, r12d
lea rdx, str.Cap_Minimum_size:__dx_d
mov ecx, 6
call fcn.140083970
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x20], eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14003e18f
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003e19f
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003e1dc
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x14003e1b9
mov dword [rax + 4], 0
lock xadd dword [rax], ebx
cmp ebx, 1
je 0x14003e1dc
test ecx, ecx
jne 0x14003e1dc
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003e1f6
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003e205
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003e214
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov rax, r14
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret