Function at 0x140003860
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 [0x14004b0e8]
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 + 0x40], rax
test rax, rax
je 0x140003b0c
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov qword [rsp + 0xe8], r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40]
lea rdx, str.D3DKMTCloseAdapter
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40]
lea rdx, str.D3DKMTCreateDevice
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40]
lea rdx, str.D3DKMTDestroyDevice
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40]
lea rdx, str.D3DKMTEscape
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r13 + 0x48], r15
mov qword [r13 + 0x50], r14
mov qword [r13 + 0x58], rsi
mov qword [r13 + 0x60], rdi
mov qword [r13 + 0x68], rbx
mov qword [r13 + 0x70], rax
cmp qword [r13 + 0x60], 0
mov r15, qword [rsp + 0xe8]
je 0x140003b0c
cmp rbx, 0
je 0x140003b0c
cmp qword [r13 + 0x48], 0
je 0x140003b0c
cmp r14, 0
je 0x140003b0c
cmp rsi, 0
je 0x140003b0c
cmp rax, 0
je 0x140003b0c
lea r8, [r13 + 0x28]
mov rcx, r13
lea rdx, [0x140037d70]
call fcn.140003e40
test eax, eax
jne 0x140003b03
cmp dword [r13 + 0x28], eax
je 0x140003b03
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 + 0x28], r14d
je 0x140003aee
lea ecx, [r14 + 0x54]
call fcn.140026b90
mov rsi, rax
test rax, rax
je 0x140003aee
mov ecx, dword [r13 + 0x28]
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.140003560
lea rdi, [rsi + 0x10]
mov dword [rsi + 4], eax
test rdi, rdi
jne 0x140003a6f
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
jmp 0x140003a9b
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 + 0x70]
lea rcx, [rbp - 0x59]
call qword [0x140037608]
mov ebx, eax
test eax, eax
jne 0x140003ae6
test rdi, rdi
je 0x140003ac8
lfence
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x29], xmm0
movaps xmmword [rbp - 0x19], xmm1
jmp 0x140003ae3
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
mov ebx, r14d
mov rcx, rsi
call fcn.140026b80
test ebx, ebx
js 0x140003b08
cmp dword [rbp - 0x1d], 1
jne 0x140003b08
mov eax, dword [rbp - 0x19]
mov dword [r13 + 0x38], eax
mov eax, ebx
jmp 0x140003b11
mov ebx, 0x80004005
mov eax, ebx
jmp 0x140003b11
mov eax, 0x80004005
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001fae0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret