Function at 0x140012090
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14004a0e8]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xorps xmm1, xmm1
xorps xmm0, xmm0
mov rdi, 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], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140012496
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTCloseAdapter
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTCreateDevice
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTDestroyDevice
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTEscape
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [rsp + 0x70]
mov qword [rbp - 0x68], rax
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rdi + 0x38], xmm0
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rdi + 0x48], xmm1
movups xmmword [rdi + 0x58], xmm0
cmp qword [rdi + 0x50], 0
je 0x140012496
cmp qword [rdi + 0x58], 0
je 0x140012496
cmp qword [rdi + 0x38], 0
je 0x140012496
cmp qword [rdi + 0x40], 0
je 0x140012496
cmp qword [rdi + 0x48], 0
je 0x140012496
cmp qword [rdi + 0x60], 0
je 0x140012496
mov qword [rsp + 0x4d8], rsi
lea rcx, [rbp + 0x54]
xor ebx, ebx
mov qword [rsp + 0x4e0], r14
xor edx, edx
mov r8d, 0x344
mov esi, ebx
call fcn.140020de0
mov dword [rbp + 0x50], 0x348
call fcn.14001ce20
xor r9d, r9d
lea r8, [rbp + 0x50]
xor edx, edx
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140036618]
test eax, eax
je 0x14001226e
test byte [rbp + 0x194], 1
je 0x14001224b
lea rdx, str.VEN_8086
lea rcx, [rbp + 0x198]
call fcn.14002116c
test rax, rax
jne 0x1400123b1
inc esi
call fcn.14001ce20
xor r9d, r9d
lea r8, [rbp + 0x50]
mov edx, esi
xor ecx, ecx
mov rax, qword [rax + 0x98]
call qword [0x140036618]
test eax, eax
jne 0x140012226
lea rsi, [rdi + 0x24]
mov dword [rsp + 0x70], 0x1ca05180
mov r8, rsi
mov dword [rsp + 0x74], 0x450aa699
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x78], 0x4fde0c9a
mov rcx, rdi
mov dword [rsp + 0x7c], 0x89dd3dbe
call fcn.1400115f0
test eax, eax
jne 0x14001247d
mov eax, dword [rsi]
test eax, eax
je 0x14001247d
or dword [rsp + 0x38], 1
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x50]
call qword [0x140036618]
test eax, eax
jne 0x14001247d
mov eax, dword [rsp + 0x3c]
xorps xmm0, xmm0
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x50], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rdi + 0x20], eax
mov dword [rbp - 0x60], ebx
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x4c], eax
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0x7c], ebx
mov dword [rbp - 0x74], ebx
cmp dword [rsi], ebx
je 0x14001247d
mov ecx, 0x54
call fcn.140025dd0
mov r14, rax
test rax, rax
je 0x14001247d
and dword [rsp + 0x7c], 0xfffffffe
lea r8, [rbp - 0x50]
xorps xmm0, xmm0
mov dword [rsp + 0x78], ebx
movups xmmword [r14], xmm0
xor eax, eax
mov edx, 0x44
movups xmmword [r14 + 0x10], xmm0
mov rcx, rdi
mov qword [rbp - 0x80], r14
movups xmmword [r14 + 0x20], xmm0
mov dword [rbp - 0x78], 0x54
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x40], xmm0
mov dword [r14 + 0x50], eax
mov eax, dword [rsi]
mov dword [rsp + 0x70], eax
mov dword [r14 + 8], 5
mov dword [r14], 0x44
call fcn.1400124c0
mov dword [r14 + 4], eax
lea rsi, [r14 + 0x10]
lea rax, [rbp - 0x50]
cmp rsi, rax
je 0x14001240c
test rsi, rsi
jne 0x1400123e7
call fcn.140026374
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1400261c4
jmp 0x14001240c
lea r8, [rbp + 0x54]
mov edx, 0x20
lea rcx, [rbp]
call fcn.1400283b0
mov rax, qword [rdi + 0x38]
lea rcx, [rbp]
call qword [0x140036618]
test eax, eax
jne 0x14001247d
mov eax, dword [rbp + 0x40]
lea rsi, [rdi + 0x24]
mov dword [rsi], eax
jmp 0x1400122aa
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
mov eax, dword [rbp - 0x10]
movups xmmword [rsi], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov dword [rsi + 0x40], eax
mov rax, qword [rdi + 0x60]
lea rcx, [rsp + 0x70]
call qword [0x140036618]
test eax, eax
jns 0x140012426
mov ebx, 0x80004005
jmp 0x140012463
lea rax, [rbp - 0x50]
cmp rax, rsi
je 0x140012463
test rsi, rsi
je 0x140012448
lfence
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm1
jmp 0x140012463
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call fcn.140026374
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1400261c4
mov rcx, r14
call fcn.1400263a0
test ebx, ebx
js 0x140012482
cmp dword [rbp - 0x44], 1
jne 0x140012482
mov eax, dword [rbp - 0x40]
mov dword [rdi + 0x28], eax
jmp 0x140012482
mov ebx, 0x80004005
mov r14, qword [rsp + 0x4e0]
mov eax, ebx
mov rsi, qword [rsp + 0x4d8]
jmp 0x14001249b
mov eax, 0x80004005
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14001eb90
add rsp, 0x4b0
pop rdi
pop rbx
pop rbp
ret