Function at 0x140003260
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400740e8]
xor rax, rsp
mov qword [rbp + 0x27], 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 0x140003543
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 - 0x69], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTCloseAdapter
mov qword [rbp - 0x61], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTCreateDevice
mov qword [rbp - 0x59], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTDestroyDevice
mov qword [rbp - 0x51], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x38]
lea rdx, str.D3DKMTEscape
mov qword [rbp - 0x49], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [rbp - 0x69]
mov qword [rbp - 0x41], rax
movups xmm1, xmmword [rbp - 0x59]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm0
cmp qword [rbx + 0x58], 0
je 0x140003543
cmp qword [rbx + 0x60], 0
je 0x140003543
cmp qword [rbx + 0x40], 0
je 0x140003543
cmp qword [rbx + 0x48], 0
je 0x140003543
cmp qword [rbx + 0x50], 0
je 0x140003543
cmp qword [rbx + 0x68], 0
je 0x140003543
lea r8, [rbx + 0x20]
mov qword [rsp + 0xf8], rsi
lea rdx, [0x1400564f0]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003532
cmp dword [rbx + 0x20], eax
je 0x140003532
xorps xmm0, xmm0
mov qword [rsp + 0x100], r12
movaps xmmword [rbp - 0x29], xmm0
xor r12d, r12d
mov dword [rbp + 0x17], r12d
mov dword [rbp - 0x29], reloc.OLEAUT32.dll_SafeArrayAccessData
mov qword [rsp + 0xc0], r15
movaps xmmword [rbp - 0x39], xmm0
movaps xmmword [rbp - 0x19], xmm0
movaps xmmword [rbp - 9], xmm0
movaps xmmword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r15d, r15d
mov dword [rbp - 0x25], eax
mov edi, 0x80004005
mov dword [rbp - 0x65], r15d
mov dword [rbp - 0x5d], r15d
mov dword [rbp - 0x4d], r15d
cmp dword [rbx + 0x20], r12d
je 0x140003506
lea ecx, [r12 + 0x54]
mov qword [rsp + 0xc8], r14
call fcn.140043518
mov r14, rax
test rax, rax
je 0x1400034fe
and dword [rbp - 0x5d], 0xfffffffe
lea r8, [rbp - 0x29]
xorps xmm0, xmm0
mov dword [rbp - 0x61], r15d
movups xmmword [r14], xmm0
xor eax, eax
lea edx, [r12 + 0x44]
movups xmmword [r14 + 0x10], xmm0
mov rcx, rbx
mov qword [rbp - 0x59], r14
movups xmmword [r14 + 0x20], xmm0
mov dword [rbp - 0x51], 0x54
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x40], xmm0
mov dword [r14 + 0x50], eax
mov eax, dword [rbx + 0x20]
mov dword [rbp - 0x69], eax
mov dword [r14 + 8], 5
mov dword [r14], 0x44
call fcn.140002f20
lea rsi, [r14 + 0x10]
mov dword [r14 + 4], eax
test rsi, rsi
jne 0x140003491
call fcn.140043a34
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140043910
jmp 0x1400034ab
movaps xmm0, xmmword [rbp - 0x29]
xorps xmm1, xmm1
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x30], xmm1
mov dword [rsi + 0x40], r12d
mov rax, qword [rbx + 0x68]
lea rcx, [rbp - 0x69]
call qword [case.0x1400290d6.0]
mov edi, eax
test eax, eax
jne 0x1400034f6
test rsi, rsi
je 0x1400034d8
lfence
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x29], xmm0
movaps xmmword [rbp - 0x19], xmm1
jmp 0x1400034f3
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.140043a34
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140043910
mov edi, r15d
mov rcx, r14
call fcn.140043a54
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x100]
test edi, edi
js 0x140003537
cmp dword [rbp - 0x1d], 1
jne 0x140003537
mov eax, dword [rbp - 0x19]
mov rsi, qword [rsp + 0xf8]
mov dword [rbx + 0x30], eax
mov eax, edi
jmp 0x140003548
mov edi, 0x80004005
mov rsi, qword [rsp + 0xf8]
mov eax, edi
jmp 0x140003548
mov eax, 0x80004005
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001fca0
add rsp, 0xd0
pop rdi
pop rbx
pop rbp
ret