Function at 0x140001770
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov r15, rdx
mov r14d, ecx
xor esi, esi
mov qword [rsp + 0xc0], 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, [0x140001730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
cmp ebx, r14d
jge 0x14000184a
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 + 0x50], rax
mov rdx, qword [0x14002d1f0]
cmp rdx, qword [0x14002d1f8]
je 0x14000183c
mov qword [rdx], rax
add qword [0x14002d1f0], 8
inc ebx
jmp 0x140001800
lea r8, [rsp + 0x50]
call fcn.140001db0
inc ebx
jmp 0x140001800
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140001865
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0xc0], rsi
lea rdx, [rsp + 0xc0]
lea rcx, [0x1400242c8]
call qword [sym.imp.dxgi.dll_CreateDXGIFactory1]
test eax, eax
js 0x140001a52
call fcn.140002900
mov rbx, rax
test rax, rax
je 0x140001a6f
mov rcx, rbx
call fcn.1400022f0
test rax, rax
je 0x140001a8c
mov dword [rsp + 0x54], 5
mov dword [rsp + 0x58], 2
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
lea rdx, str.mfxImplDescription.Impl
mov rcx, rax
call fcn.140002950
mov qword [rsp + 0xc8], rsi
lea r8, [rsp + 0xc8]
xor edx, edx
mov rcx, rbx
call fcn.140002490
nop dword [rax]
mov r9d, esi
inc esi
mov r8, qword [rsp + 0xc8]
mov rdx, rbx
mov rcx, qword [rsp + 0xc0]
call fcn.1400014b0
cmp al, 1
je 0x1400018f0
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140001923
call fcn.140002f90
mov rcx, rbx
call fcn.140002ab0
mov rbx, qword [0x14002d200]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140001a29
lea rdi, str.true
nop word [rax + rax]
mov edx, dword [rbx + 0x1c]
lea rcx, str.__u__n
call fcn.140001180
lea rdx, str.false
cmp byte [rbx + 0x20], 0
cmovne rdx, rdi
lea rcx, str.is_intel_s_n
call fcn.140001180
lea rdx, str.false
cmp byte [rbx + 0x21], 0
cmovne rdx, rdi
lea rcx, str.is_dgpu_s_n
call fcn.140001180
lea rdx, str.false
cmp byte [rbx + 0x22], 0
cmovne rdx, rdi
lea rcx, str.supports_av1_s_n
call fcn.140001180
lea rdx, str.false
cmp byte [rbx + 0x23], 0
cmovne rdx, rdi
lea rcx, str.supports_hevc_s_n
call fcn.140001180
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400019f8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400019f3
nop
cmp rbx, qword [rax + 0x10]
jne 0x1400019f3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400019e0
mov rbx, rax
jmp 0x140001a1f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140001a1f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140001a10
cmp byte [rbx + 0x19], 0
je 0x140001950
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140001a3d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor eax, eax
jmp 0x140001a43
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lea rax, str.CreateDXGIFactory1_failed
mov qword [rsp + 0x60], rax
lea rdx, [0x140028cc0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.MFXLoad_failed
mov qword [rsp + 0x68], rax
lea rdx, [0x140028cc0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.MFXCreateConfig_failed
mov qword [rsp + 0x70], rax
lea rdx, [0x140028cc0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3