Function at 0x140012020
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14004a0e8]
xor rax, rsp
mov qword [rbp + 0x390], rax
xorps xmm1, xmm1
xorps xmm0, xmm0
mov r13, rcx
lea rcx, str.gdi32.dll
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r13 + 0x38], rax
test rax, rax
je 0x140012422
mov qword [rsp + 0x4d8], r14
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rax
mov qword [rsp + 0x4e0], r15
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 + 0x4e0]
mov r14, qword [rsp + 0x4d8]
je 0x140012422
cmp rbx, 0
je 0x140012422
cmp qword [r13 + 0x40], 0
je 0x140012422
cmp qword [r13 + 0x48], 0
je 0x140012422
cmp rsi, 0
je 0x140012422
cmp rax, 0
je 0x140012422
xor ebx, ebx
lea rcx, [rbp + 0x44]
xor edx, edx
mov r8d, 0x344
mov edi, ebx
call fcn.140020d50
mov dword [rbp + 0x40], 0x348
call fcn.14001cf90
xor r9d, r9d
lea r8, [rbp + 0x40]
xor edx, edx
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140036608]
test eax, eax
je 0x140012208
nop word [rax + rax]
test byte [rbp + 0x184], 1
je 0x1400121e5
lea rdx, str.VEN_8086
lea rcx, [rbp + 0x188]
call fcn.1400210dc
test rax, rax
jne 0x140012343
inc edi
call fcn.14001cf90
xor r9d, r9d
lea r8, [rbp + 0x40]
mov edx, edi
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140036608]
test eax, eax
jne 0x1400121c0
lea rdi, [r13 + 0x2c]
mov dword [rsp + 0x70], 0x1ca05180
mov r8, rdi
mov dword [rsp + 0x74], 0x450aa699
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x78], 0x4fde0c9a
mov rcx, r13
mov dword [rsp + 0x7c], 0x89dd3dbe
call fcn.140011580
test eax, eax
jne 0x140012419
mov eax, dword [rdi]
test eax, eax
je 0x140012419
or dword [rsp + 0x38], 1
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [r13 + 0x58]
call qword [0x140036608]
test eax, eax
jne 0x140012419
mov eax, dword [rsp + 0x3c]
xorps xmm0, xmm0
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0x60], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [r13 + 0x28], eax
mov dword [rbp - 0x70], ebx
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x5c], eax
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0x7c], ebx
mov dword [rbp - 0x74], ebx
cmp dword [rdi], ebx
je 0x140012419
mov ecx, 0x54
call fcn.140025d20
mov rsi, rax
test rax, rax
je 0x140012419
and dword [rsp + 0x7c], 0xfffffffe
lea r8, [rbp - 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x78], ebx
movups xmmword [rsi], xmm0
xor eax, eax
mov edx, 0x44
movups xmmword [rsi + 0x10], xmm0
mov rcx, r13
mov qword [rbp - 0x80], rsi
movups xmmword [rsi + 0x20], xmm0
mov dword [rbp - 0x78], 0x54
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
mov dword [rsi + 0x50], eax
mov eax, dword [rdi]
mov dword [rsp + 0x70], eax
mov dword [rsi + 8], 5
mov dword [rsi], 0x44
call fcn.140012450
mov dword [rsi + 4], eax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x60]
cmp rdi, rax
je 0x1400123a5
test rdi, rdi
jne 0x140012379
call fcn.1400262c4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026114
jmp 0x1400123a5
lea r8, [rbp + 0x44]
mov edx, 0x20
lea rcx, [rbp - 0x10]
call fcn.140028300
mov rax, qword [r13 + 0x40]
lea rcx, [rbp - 0x10]
call qword [0x140036608]
test eax, eax
jne 0x140012419
mov eax, dword [rbp + 0x30]
lea rdi, [r13 + 0x2c]
mov dword [rdi], eax
jmp 0x140012244
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movups xmmword [rdi], xmm0
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rdi + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x30]
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, [rsp + 0x70]
call qword [0x140036608]
test eax, eax
jns 0x1400123bf
mov ebx, 0x80004005
jmp 0x1400123fc
lea rax, [rbp - 0x60]
cmp rax, rdi
je 0x1400123fc
test rdi, rdi
je 0x1400123e1
lfence
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
jmp 0x1400123fc
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.1400262c4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026114
mov rcx, rsi
call fcn.1400262f0
test ebx, ebx
js 0x14001241e
cmp dword [rbp - 0x54], 1
jne 0x14001241e
mov eax, dword [rbp - 0x50]
mov dword [r13 + 0x30], eax
mov eax, ebx
jmp 0x140012427
mov ebx, 0x80004005
mov eax, ebx
jmp 0x140012427
mov eax, 0x80004005
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001ec80
add rsp, 0x4a0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret