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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r13, rdx
mov qword [rbp - 0x10], rcx
mov dword [rsp + 0x34], 1
mov byte [rsp + 0x30], 0
mov r15d, 1
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], 4
call fcn.140061f60
mov rsi, rax
call fcn.140061d80
mov rcx, rax
call fcn.14002fbe0
mov r12, rax
cmp qword [rax + 8], 0
je 0x14003a535
test rsi, rsi
je 0x14003a535
mov rcx, rsi
call fcn.140064f50
test al, al
je 0x14003a535
mov rdi, qword [r12 + 8]
mov rbx, qword [rsi + 0x18]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
test rbx, rbx
je 0x14003a221
mov qword [rsp + 0x48], rbx
mov eax, r15d
lock xadd dword [rbx], eax
inc eax
cmp eax, r15d
jle 0x14003a20f
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rbx + 4], ecx
je 0x14003a21e
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]
xor ebx, ebx
test rdi, rdi
jne 0x14003a26f
lea r14d, [rbx - 1]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003a268
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14003a242
mov dword [rcx + 4], edi
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14003a268
test edx, edx
jne 0x14003a268
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor ebx, ebx
jmp 0x14003a2f8
mov rax, qword [rdi + 0x68]
lea r9, [rbp - 8]
mov r8d, dword [rdi + 0x64]
mov edx, dword [rax]
mov rcx, qword [0x14023d248]
call qword [0x14023d1f8]
test eax, eax
jne 0x14003a2b2
mov ecx, dword [rbp + 0xc]
lea eax, [rcx - 0x1f]
test eax, 0xfffffffb
je 0x14003a2ad
mov ebx, SHCreateMemStream
mov eax, 3
cmp ecx, 0x71
cmovne ebx, eax
jmp 0x14003a2b2
mov ebx, 0xd
mov r14d, 0xffffffff
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003a2f8
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x14003a2d2
mov dword [rcx + 4], 0
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14003a2f8
test edx, edx
jne 0x14003a2f8
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov rdx, qword [r12 + 8]
mov rcx, qword [rdx + 0x80]
mov rax, qword [rdx + 0x88]
sub rax, rcx
sar rax, 4
xor r12d, r12d
test eax, eax
jg 0x14003a345
mov r8d, r12d
jmp 0x14003a351
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x20], xmm0
movd r8d, xmm0
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x60]
mov edx, dword [rdx + 0x64]
mov rcx, rsi
call fcn.14006cd30
test al, al
je 0x14003a3b7
mov r15d, r12d
mov r8d, dword [rsp + 0x68]
mov ecx, r8d
sub ecx, 1
je 0x14003a3b1
sub ecx, 3
je 0x14003a3b1
sub ecx, 4
je 0x14003a3a9
sub ecx, 0x38
je 0x14003a3a1
cmp ecx, 0x40
je 0x14003a3b1
lea rdx, str.Could_not_find_AMF_color_primary_for_colorspace__d
mov ecx, 1
call fcn.1400838f0
jmp 0x14003a3b7
mov r15d, 0x3e8
jmp 0x14003a3b7
mov r15d, 9
jmp 0x14003a3b7
mov r15d, 1
mov rax, qword [rbp - 0x10]
cmp byte [rax + 0x28], 0
je 0x14003a535
cmp ebx, 0xb
jne 0x14003a3e3
mov dword [rsp + 0x34], ebx
mov r15d, 1
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], 8
jmp 0x14003a40a
cmp ebx, 0xd
jne 0x14003a535
cmp r15d, 9
jne 0x14003a535
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x3c], 0x10
mov al, 1
cmp dword [r13], 2
jne 0x14003a537
call fcn.140061c90
mov rsi, rax
mov rdi, qword [rax + 0x18]
mov rbx, r12
test rdi, rdi
je 0x14003a470
mov rbx, rdi
mov ecx, 1
lock xadd dword [rdi], ecx
inc ecx
cmp ecx, 1
jle 0x14003a45e
mov rcx, qword gs:[0x30]
mov eax, dword [rcx + 0x48]
cmp dword [rdi + 4], eax
je 0x14003a46d
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
cmp byte [rsi + 0xacd], 0
jne 0x14003a482
movzx edi, byte [rsi + 0xacc]
jmp 0x14003a4f8
mov word [rsi + 0xacc], 0
mov dword [rbp - 0x10], r12d
lea r8, [rbp - 0x10]
lea rdx, str.EfcHevcOutput8Bit
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400074d0
test al, al
jne 0x14003a4e2
lea r8, [rbp - 0x10]
lea rdx, str.EfcHevcOutput8Bit
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400075b0
test al, al
jne 0x14003a4e2
lea rdx, [rbp - 0x10]
lea rcx, str.EfcHevcOutput8Bit
call fcn.140007690
test al, al
jne 0x14003a4e2
movzx edi, byte [rsi + 0xacc]
jmp 0x14003a4f8
mov byte [rsi + 0xacd], 0
cmp dword [rbp - 0x10], 1
sete dil
mov byte [rsi + 0xacc], dil
test rbx, rbx
je 0x14003a529
add dword [rbx + 8], 0xffffffff
mov eax, dword [rbx + 8]
jne 0x14003a50a
mov dword [rbx + 4], r12d
lock xadd dword [rbx], r14d
cmp r14d, 1
je 0x14003a529
test eax, eax
jne 0x14003a529
xor r8d, r8d
lea edx, [rax + 1]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test dil, dil
sete byte [rsp + 0x30]
mov al, 1
jmp 0x14003a537
xor al, al
mov ecx, dword [rsp + 0x34]
mov dword [r13 + 0x64], ecx
mov dword [r13 + 0x6c], r15d
mov ecx, dword [rsp + 0x38]
mov dword [r13 + 0x68], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [r13 + 0x70], ecx
mov byte [r13 + 0x60], al
movzx eax, byte [rsp + 0x30]
mov byte [r13 + 0x61], al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x60]
mov ebp, r9d
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp dword [rax], 1
jle 0x14003a5cb
lea rdx, str.PopulateEncodeParameters:_Cant_acomodate_user_capturing_peferences._Throttling_down_the_encoder_configs
mov ecx, 6
call fcn.140083930
imul r9d, dword [rbx + 0x14], 0x3e8
mov rdx, rdi
cmp r9d, dword [rsi + 0x24]
cmovge r9d, dword [rsi + 0x24]
mov dword [rdi + 0x24], r9d
mov eax, dword [rbx + 0xc]
mov dword [rdi + 0xc], eax
mov eax, dword [rbx + 0x10]
mov dword [rdi], eax
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, dword [rsp + 0x50]
lea rdx, [rdi + 0x18]
lea r8, [rdi + 0x1c]
mov dword [rdx], ebp
mov dword [r8], ebx
cmp byte [rsi + 0x60], 0
jne 0x14003a618
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x58]
mov dword [rdi + 0x10], ebp
mov dword [rdi + 0x14], ebx
call fcn.1400173e0
mov r9d, dword [rdi + 0x14]
lea rdx, str.PopulateEncodeParameters:_the_set_resolution_is_:__d_x__d
mov r8d, dword [rdi + 0x10]
mov ecx, 6
mov dword [rdi + 0x20], eax
call fcn.140083970
mov r8d, dword [rdi + 0x20]
lea rdx, str.PopulateEncodeParameters:_the_set_frame_rate_is__d
mov ecx, 6
call fcn.140083970
mov rbp, qword [rsi + 0x40]
mov rbx, qword [rsi + 0x38]
cmp rbx, rbp
je 0x14003a685
nop word [rax + rax]
mov rcx, qword [rbx]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
add rbx, 8
cmp rbx, rbp
jne 0x14003a670
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14003a130