Function at 0x140002ff0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14004a0e8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1400032c8
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov qword [rbp - 0x59], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTCloseAdapter
mov qword [rbp - 0x51], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTCreateDevice
mov qword [rbp - 0x49], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTDestroyDevice
mov qword [rbp - 0x41], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTEscape
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [rbp - 0x59]
mov qword [rbp - 0x31], rax
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm0
cmp qword [rbx + 0x58], 0
je 0x1400032c8
cmp qword [rbx + 0x60], 0
je 0x1400032c8
cmp qword [rbx + 0x40], 0
je 0x1400032c8
cmp qword [rbx + 0x48], 0
je 0x1400032c8
cmp qword [rbx + 0x50], 0
je 0x1400032c8
cmp qword [rbx + 0x68], 0
je 0x1400032c8
lea r8, [rbx + 0x20]
mov qword [rsp + 0xe8], rsi
lea rdx, [0x140036fb8]
mov rcx, rbx
call fcn.1400035f0
test eax, eax
jne 0x1400032b7
cmp dword [rbx + 0x20], eax
je 0x1400032b7
xorps xmm0, xmm0
mov qword [rsp + 0xf8], r15
movups xmmword [rbp - 0x25], xmm0
xor r15d, r15d
mov dword [rbp - 0x19], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rbp - 0x29], r15d
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x80004005
mov dword [rbp - 0x15], eax
mov dword [rbp - 0x55], r15d
mov dword [rbp - 0x4d], r15d
mov dword [rbp - 0x3d], r15d
cmp dword [rbx + 0x20], r15d
je 0x140003293
lea ecx, [r15 + 0x54]
mov qword [rsp + 0xf0], r14
call fcn.140025dd0
mov r14, rax
test rax, rax
je 0x14000328b
mov ecx, dword [rbx + 0x20]
lea r8, [rbp - 0x19]
and dword [rbp - 0x4d], 0xfffffffe
xorps xmm0, xmm0
movups xmmword [r14], xmm0
xor eax, eax
mov dword [rbp - 0x59], ecx
movups xmmword [r14 + 0x10], xmm0
mov rcx, rbx
mov dword [rbp - 0x51], r15d
movups xmmword [r14 + 0x20], xmm0
lea edx, [rax + 0x44]
mov qword [rbp - 0x49], r14
movups xmmword [r14 + 0x30], xmm0
mov dword [rbp - 0x41], 0x54
movups xmmword [r14 + 0x40], xmm0
mov dword [r14 + 0x50], eax
mov dword [r14 + 8], 5
mov dword [r14], 0x44
call fcn.140002cb0
lea rsi, [r14 + 0x10]
mov dword [r14 + 4], eax
test rsi, rsi
jne 0x140003213
call fcn.140026374
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1400261c4
jmp 0x140003238
movaps xmm0, xmmword [rbp - 0x19]
movaps xmm1, xmmword [rbp - 9]
mov eax, dword [rbp + 0x27]
movups xmmword [rsi], xmm0
movaps xmm0, xmmword [rbp + 7]
movups xmmword [rsi + 0x10], xmm1
movaps xmm1, xmmword [rbp + 0x17]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov dword [rsi + 0x40], eax
mov rax, qword [rbx + 0x68]
lea rcx, [rbp - 0x59]
call qword [0x140036618]
mov edi, eax
test eax, eax
jne 0x140003283
test rsi, rsi
je 0x140003265
lfence
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x19], xmm0
movaps xmmword [rbp - 9], xmm1
jmp 0x140003280
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
call fcn.140026374
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1400261c4
mov edi, r15d
mov rcx, r14
call fcn.1400263a0
mov r14, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xf8]
test edi, edi
js 0x1400032bc
cmp dword [rbp - 0xd], 1
jne 0x1400032bc
mov eax, dword [rbp - 9]
mov rsi, qword [rsp + 0xe8]
mov dword [rbx + 0x30], eax
mov eax, edi
jmp 0x1400032cd
mov edi, 0x80004005
mov rsi, qword [rsp + 0xe8]
mov eax, edi
jmp 0x1400032cd
mov eax, 0x80004005
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001eb90
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret