Function at 0x1400015c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov r15, rdx
mov r14d, ecx
xor esi, esi
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x40]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, qword [rsp + 0x40]
lea r8, [0x140001580]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.amfrt64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000186c
lea rdx, str.AMFInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001889
lea rdx, [0x1400057a8]
movabs rcx, 0x1000400210000
call rax
test eax, eax
jne 0x1400018a6
mov ebx, 1
cmp ebx, r14d
jge 0x1400016ed
movsxd rcx, ebx
xor edx, edx
mov r8d, 0x10
mov rcx, qword [r15 + rcx*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov qword [rsp + 0x60], rax
mov rdx, qword [0x140005788]
cmp rdx, qword [0x140005790]
je 0x1400016df
mov qword [rdx], rax
add qword [0x140005788], 8
inc ebx
jmp 0x1400016a1
lea r8, [rsp + 0x60]
call fcn.140001c10
inc ebx
jmp 0x1400016a1
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140001708
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0xb8], rsi
lea rdx, [rsp + 0xb8]
lea rcx, [0x140003588]
call qword [sym.imp.dxgi.dll_CreateDXGIFactory1]
test eax, eax
js 0x1400018c3
nop word [rax + rax]
mov edx, esi
inc esi
mov rcx, qword [rsp + 0xb8]
call fcn.1400012d0
test al, al
jne 0x140001730
mov rbx, qword [0x140005798]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], al
jne 0x140001839
lea rdi, str.true
nop
mov edx, dword [rbx + 0x1c]
lea rcx, str.__u__n
call fcn.140001060
lea rdx, str.false
cmp byte [rbx + 0x20], 0
cmovne rdx, rdi
lea rcx, str.is_amd_s_n
call fcn.140001060
lea rdx, str.false
cmp byte [rbx + 0x21], 0
cmovne rdx, rdi
lea rcx, str.supports_avc_s_n
call fcn.140001060
lea rdx, str.false
cmp byte [rbx + 0x22], 0
cmovne rdx, rdi
lea rcx, str.supports_hevc_s_n
call fcn.140001060
lea rdx, str.false
cmp byte [rbx + 0x23], 0
cmovne rdx, rdi
lea rcx, str.supports_av1_s_n
call fcn.140001060
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140001808
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140001803
nop
cmp rbx, qword [rax + 0x10]
jne 0x140001803
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400017f0
mov rbx, rax
jmp 0x14000182f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14000182f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140001820
cmp byte [rbx + 0x19], 0
je 0x140001760
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14000184d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor eax, eax
jmp 0x140001853
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rax, str.Failed_to_load_AMF_lib
mov qword [rsp + 0x48], rax
lea rdx, [0x140004070]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.Failed_to_get_init_func
mov qword [rsp + 0x50], rax
lea rdx, [0x140004070]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.AMFInit_failed
mov qword [rsp + 0x58], rax
lea rdx, [0x140004070]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.CreateDXGIFactory1_failed
mov qword [rsp + 0x68], rax
lea rdx, [0x140004070]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3