Function at 0x140001ad0
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, [0x140001410]
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 0x140001d7c
lea rdx, str.AMFInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001d99
lea rdx, [0x140005150]
movabs rcx, 0x10004001d0000
call rax
test eax, eax
jne 0x140001db6
mov ebx, 1
cmp ebx, r14d
jge 0x140001c02
movsxd rcx, ebx
xor edx, edx
lea r8d, [rdx + 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 [0x140005130]
cmp rdx, qword [0x140005138]
je 0x140001bed
mov qword [rdx], rax
add qword [0x140005130], 8
inc ebx
jmp 0x140001bb1
lea r8, [rsp + 0x60]
lea rcx, [0x140005128]
call fcn.140001050
inc ebx
jmp 0x140001bb1
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140001c1d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0xb8], rsi
lea rdx, [rsp + 0xb8]
lea rcx, [0x140003440]
call sub.dxgi.dll_CreateDXGIFactory1
test eax, eax
js 0x140001dd3
nop dword [rax]
mov edx, esi
inc esi
mov rcx, qword [rsp + 0xb8]
call fcn.140001760
test al, al
jne 0x140001c40
mov rbx, qword [0x140005140]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], al
jne 0x140001d49
lea rdi, str.true
nop
mov edx, dword [rbx + 0x1c]
lea rcx, str.__u__n
call fcn.140001e00
lea rdx, str.false
cmp byte [rbx + 0x20], 0
cmovne rdx, rdi
lea rcx, str.is_amd_s_n
call fcn.140001e00
lea rdx, str.false
cmp byte [rbx + 0x21], 0
cmovne rdx, rdi
lea rcx, str.supports_avc_s_n
call fcn.140001e00
lea rdx, str.false
cmp byte [rbx + 0x22], 0
cmovne rdx, rdi
lea rcx, str.supports_hevc_s_n
call fcn.140001e00
lea rdx, str.false
cmp byte [rbx + 0x23], 0
cmovne rdx, rdi
lea rcx, str.supports_av1_s_n
call fcn.140001e00
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140001d18
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140001d13
nop
cmp rbx, qword [rax + 0x10]
jne 0x140001d13
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140001d00
mov rbx, rax
jmp 0x140001d3f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140001d3f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140001d30
cmp byte [rbx + 0x19], 0
je 0x140001c70
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140001d5d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor eax, eax
jmp 0x140001d63
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, [0x1400040e8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.Failed_to_get_init_func
mov qword [rsp + 0x50], rax
lea rdx, [0x1400040e8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.AMFInit_failed
mov qword [rsp + 0x58], rax
lea rdx, [0x1400040e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.CreateDXGIFactory1_failed
mov qword [rsp + 0x68], rax
lea rdx, [0x1400040e8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3