Function at 0x140003160
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400490e8]
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 0x140003443
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 0x140003443
cmp qword [rbx + 0x60], 0
je 0x140003443
cmp qword [rbx + 0x40], 0
je 0x140003443
cmp qword [rbx + 0x48], 0
je 0x140003443
cmp qword [rbx + 0x50], 0
je 0x140003443
cmp qword [rbx + 0x68], 0
je 0x140003443
lea r8, [rbx + 0x20]
mov qword [rsp + 0xf8], rsi
lea rdx, [0x140035f10]
mov rcx, rbx
call fcn.140003780
test eax, eax
jne 0x140003432
cmp dword [rbx + 0x20], eax
je 0x140003432
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 0x140003406
lea ecx, [r12 + 0x54]
mov qword [rsp + 0xc8], r14
call fcn.140025588
mov r14, rax
test rax, rax
je 0x1400033fe
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.140002e20
lea rsi, [r14 + 0x10]
mov dword [r14 + 4], eax
test rsi, rsi
jne 0x140003391
call fcn.140025aa4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140025980
jmp 0x1400033ab
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 [0x1400355d8]
mov edi, eax
test eax, eax
jne 0x1400033f6
test rsi, rsi
je 0x1400033d8
lfence
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x29], xmm0
movaps xmmword [rbp - 0x19], xmm1
jmp 0x1400033f3
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.140025aa4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140025980
mov edi, r15d
mov rcx, r14
call fcn.140025ac4
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x100]
test edi, edi
js 0x140003437
cmp dword [rbp - 0x1d], 1
jne 0x140003437
mov eax, dword [rbp - 0x19]
mov rsi, qword [rsp + 0xf8]
mov dword [rbx + 0x30], eax
mov eax, edi
jmp 0x140003448
mov edi, 0x80004005
mov rsi, qword [rsp + 0xf8]
mov eax, edi
jmp 0x140003448
mov eax, 0x80004005
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001e610
add rsp, 0xd0
pop rdi
pop rbx
pop rbp
ret