Function at 0x140002ff0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14004a0e8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r13 + 0x38], rax
test rax, rax
je 0x14000329c
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov qword [rsp + 0xe8], r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x38]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x38]
lea rdx, str.D3DKMTCloseAdapter
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x38]
lea rdx, str.D3DKMTCreateDevice
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x38]
lea rdx, str.D3DKMTDestroyDevice
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x38]
lea rdx, str.D3DKMTEscape
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r13 + 0x40], r15
mov qword [r13 + 0x48], r14
mov qword [r13 + 0x50], rsi
mov qword [r13 + 0x58], rdi
mov qword [r13 + 0x60], rbx
mov qword [r13 + 0x68], rax
cmp qword [r13 + 0x58], 0
mov r15, qword [rsp + 0xe8]
je 0x14000329c
cmp rbx, 0
je 0x14000329c
cmp qword [r13 + 0x40], 0
je 0x14000329c
cmp r14, 0
je 0x14000329c
cmp rsi, 0
je 0x14000329c
cmp rax, 0
je 0x14000329c
lea r8, [r13 + 0x20]
mov rcx, r13
lea rdx, [0x140036f98]
call fcn.1400035d0
test eax, eax
jne 0x140003293
cmp dword [r13 + 0x20], eax
je 0x140003293
xorps xmm0, xmm0
xor r14d, r14d
movups xmmword [rbp - 0x35], xmm0
mov dword [rbp - 0x29], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rbp - 0x39], r14d
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0x80004005
mov dword [rbp - 0x25], eax
mov dword [rbp - 0x55], r14d
mov dword [rbp - 0x4d], r14d
mov dword [rbp - 0x3d], r14d
cmp dword [r13 + 0x20], r14d
je 0x14000327e
lea ecx, [r14 + 0x54]
call fcn.140025d20
mov rsi, rax
test rax, rax
je 0x14000327e
mov ecx, dword [r13 + 0x20]
lea r8, [rbp - 0x29]
and dword [rbp - 0x4d], 0xfffffffe
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
xor eax, eax
mov dword [rbp - 0x59], ecx
movups xmmword [rsi + 0x10], xmm0
mov rcx, r13
mov dword [rbp - 0x51], r14d
movups xmmword [rsi + 0x20], xmm0
lea edx, [rax + 0x44]
mov qword [rbp - 0x49], rsi
movups xmmword [rsi + 0x30], xmm0
mov dword [rbp - 0x41], 0x54
movups xmmword [rsi + 0x40], xmm0
mov dword [rsi + 0x50], eax
mov dword [rsi + 8], 5
mov dword [rsi], 0x44
call fcn.140002cb0
lea rdi, [rsi + 0x10]
mov dword [rsi + 4], eax
test rdi, rdi
jne 0x1400031ff
call fcn.1400262c4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026114
jmp 0x14000322b
movaps xmm0, xmmword [rbp - 0x29]
movaps xmm1, xmmword [rbp - 0x19]
movups xmmword [rdi], xmm0
movaps xmm0, xmmword [rbp - 9]
movups xmmword [rdi + 0x10], xmm1
movaps xmm1, xmmword [rbp + 7]
movups xmmword [rdi + 0x20], xmm0
xorps xmm0, xmm0
psrldq xmm0, 0xc
movups xmmword [rdi + 0x30], xmm1
movd dword [rdi + 0x40], xmm0
mov rax, qword [r13 + 0x68]
lea rcx, [rbp - 0x59]
call qword [0x140036608]
mov ebx, eax
test eax, eax
jne 0x140003276
test rdi, rdi
je 0x140003258
lfence
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x29], xmm0
movaps xmmword [rbp - 0x19], xmm1
jmp 0x140003273
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.1400262c4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026114
mov ebx, r14d
mov rcx, rsi
call fcn.1400262f0
test ebx, ebx
js 0x140003298
cmp dword [rbp - 0x1d], 1
jne 0x140003298
mov eax, dword [rbp - 0x19]
mov dword [r13 + 0x30], eax
mov eax, ebx
jmp 0x1400032a1
mov ebx, 0x80004005
mov eax, ebx
jmp 0x1400032a1
mov eax, 0x80004005
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001ec80
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret