Function at 0x140012ea0
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 [0x14004b0e8]
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 0x1400132a2
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 0x1400132a2
cmp rbx, 0
je 0x1400132a2
cmp qword [r13 + 0x40], 0
je 0x1400132a2
cmp qword [r13 + 0x48], 0
je 0x1400132a2
cmp rsi, 0
je 0x1400132a2
cmp rax, 0
je 0x1400132a2
xor ebx, ebx
lea rcx, [rbp + 0x44]
xor edx, edx
mov r8d, 0x344
mov edi, ebx
call fcn.140021bb0
mov dword [rbp + 0x40], 0x348
call fcn.14001ddf0
xor r9d, r9d
lea r8, [rbp + 0x40]
xor edx, edx
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140037608]
test eax, eax
je 0x140013088
nop word [rax + rax]
test byte [rbp + 0x184], 1
je 0x140013065
lea rdx, str.VEN_8086
lea rcx, [rbp + 0x188]
call fcn.140021f3c
test rax, rax
jne 0x1400131c3
inc edi
call fcn.14001ddf0
xor r9d, r9d
lea r8, [rbp + 0x40]
mov edx, edi
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140037608]
test eax, eax
jne 0x140013040
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.140012400
test eax, eax
jne 0x140013299
mov eax, dword [rdi]
test eax, eax
je 0x140013299
or dword [rsp + 0x38], 1
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [r13 + 0x58]
call qword [0x140037608]
test eax, eax
jne 0x140013299
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 0x140013299
mov ecx, 0x54
call fcn.140026b90
mov rsi, rax
test rax, rax
je 0x140013299
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.1400132d0
mov dword [rsi + 4], eax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x60]
cmp rdi, rax
je 0x140013225
test rdi, rdi
jne 0x1400131f9
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
jmp 0x140013225
lea r8, [rbp + 0x44]
mov edx, 0x20
lea rcx, [rbp - 0x10]
call fcn.140029150
mov rax, qword [r13 + 0x40]
lea rcx, [rbp - 0x10]
call qword [0x140037608]
test eax, eax
jne 0x140013299
mov eax, dword [rbp + 0x30]
lea rdi, [r13 + 0x2c]
mov dword [rdi], eax
jmp 0x1400130c4
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 [0x140037608]
test eax, eax
jns 0x14001323f
mov ebx, 0x80004005
jmp 0x14001327c
lea rax, [rbp - 0x60]
cmp rax, rdi
je 0x14001327c
test rdi, rdi
je 0x140013261
lfence
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
jmp 0x14001327c
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
mov rcx, rsi
call fcn.140026b80
test ebx, ebx
js 0x14001329e
cmp dword [rbp - 0x54], 1
jne 0x14001329e
mov eax, dword [rbp - 0x50]
mov dword [r13 + 0x30], eax
mov eax, ebx
jmp 0x1400132a7
mov ebx, 0x80004005
mov eax, ebx
jmp 0x1400132a7
mov eax, 0x80004005
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001fae0
add rsp, 0x4a0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret