Function at 0x1400124e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400740e8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xorps xmm1, xmm1
xorps xmm0, xmm0
mov rdi, rcx
lea rcx, str.gdi32.dll
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x140012555
lea rdx, str._Unable_to_link_with_gdi32.dll_n
jmp 0x1400129d4
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 + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTCloseAdapter
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTCreateDevice
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTDestroyDevice
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.D3DKMTEscape
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x38], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi + 0x48], xmm1
movups xmmword [rdi + 0x58], xmm0
cmp qword [rdi + 0x50], 0
je 0x1400129cd
cmp qword [rdi + 0x58], 0
je 0x1400129cd
cmp qword [rdi + 0x38], 0
je 0x1400129cd
cmp qword [rdi + 0x40], 0
je 0x1400129cd
cmp qword [rdi + 0x48], 0
je 0x1400129cd
cmp qword [rdi + 0x60], 0
je 0x1400129cd
mov qword [rsp + 0x4e8], rsi
lea rcx, [rbp + 0x64]
xor ebx, ebx
mov qword [rsp + 0x4f0], r14
xor edx, edx
mov qword [rsp + 0x4f8], r15
mov r8d, 0x344
mov esi, ebx
call fcn.14003e9d0
mov dword [rbp + 0x60], 0x348
call fcn.14001da40
xor r9d, r9d
lea r8, [rbp + 0x60]
xor edx, edx
xor ecx, ecx
mov rax, qword [rax + 0x78]
call qword [case.0x1400290d6.0]
test eax, eax
je 0x1400126ea
nop word [rax + rax]
lea r8, [rbp + 0x1a8]
xor ecx, ecx
lea rdx, str.Device__ID:_0x_x
call fcn.1400081f0
test byte [rbp + 0x1a4], 1
je 0x1400126ca
lea rdx, str.VEN_8086
lea rcx, [rbp + 0x1a8]
call fcn.14003eb70
test rax, rax
jne 0x14001278f
inc esi
call fcn.14001da40
xor r9d, r9d
lea r8, [rbp + 0x60]
mov edx, esi
xor ecx, ecx
mov rax, qword [rax + 0x78]
call qword [case.0x1400290d6.0]
test eax, eax
jne 0x140012690
mov r8d, ebx
lea rdx, str.DeviceFound_:__d
mov rcx, rbx
lea r15, [rbp + 0x10]
lea rsi, str.Display_Name_is:__s
mov r14, rbx
call fcn.1400081f0
mov r8, r15
mov rdx, rsi
mov rcx, rbx
call fcn.1400081f0
lea rsi, [rdi + 0x24]
mov dword [rbp - 0x60], 0x1ca05180
mov r8, rsi
mov dword [rbp - 0x5c], 0x450aa699
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x58], 0x4fde0c9a
mov rcx, rdi
mov dword [rbp - 0x54], 0x89dd3dbe
call fcn.140011c00
test eax, eax
jne 0x14001299e
mov eax, dword [rsi]
test eax, eax
je 0x14001299e
or dword [rsp + 0x68], 1
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
mov rax, qword [rdi + 0x50]
call qword [case.0x1400290d6.0]
test eax, eax
je 0x1400127fd
mov r8d, eax
lea rdx, str.pfnCreateDevice_failed__x
xor ecx, ecx
call fcn.1400081f0
jmp 0x1400129ac
lea r8, [rbp + 0x64]
mov edx, 0x20
lea rcx, [rbp + 0x10]
call fcn.1400459f0
mov r8d, 1
lea rdx, str.DeviceFound_:__d
xor ecx, ecx
call fcn.1400081f0
lea r8, [rbp + 0x10]
xor ecx, ecx
lea rdx, str.Display_Name_is:__s
call fcn.1400081f0
mov rax, qword [rdi + 0x38]
lea rcx, [rbp + 0x10]
call qword [case.0x1400290d6.0]
test eax, eax
je 0x1400127ef
mov r8d, eax
lea rdx, str.pfnOpenAdapterFromGDIDisplayName_failed__0x_x
xor ecx, ecx
call fcn.1400081f0
jmp 0x1400129ac
mov eax, dword [rbp + 0x50]
lea rsi, [rdi + 0x24]
mov dword [rsi], eax
jmp 0x14001274f
mov eax, dword [rsp + 0x6c]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
xor r15d, r15d
mov dword [rbp - 0x40], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rdi + 0x20], eax
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm0
mov dword [rbp], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x3c], eax
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x4c], ebx
cmp dword [rsi], ebx
je 0x140012995
lea ecx, [r15 + 0x54]
call fcn.140043518
mov r14, rax
test rax, rax
jne 0x140012863
lea rdx, str.pEscapePvtData_is_null
jmp 0x1400129a5
and dword [rsp + 0x3c], 0xfffffffe
lea r8, [rbp - 0x40]
xorps xmm0, xmm0
mov dword [rsp + 0x38], ebx
movups xmmword [r14], xmm0
xor eax, eax
mov edx, 0x44
movups xmmword [r14 + 0x10], xmm0
mov rcx, rdi
mov qword [rsp + 0x40], r14
movups xmmword [r14 + 0x20], xmm0
mov dword [rsp + 0x48], 0x54
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x40], xmm0
mov dword [r14 + 0x50], eax
mov eax, dword [rsi]
mov dword [rsp + 0x30], eax
mov dword [r14 + 8], 5
mov dword [r14], 0x44
call fcn.140012a00
mov dword [r14 + 4], eax
lea rsi, [r14 + 0x10]
lea rax, [rbp - 0x40]
cmp rsi, rax
je 0x140012902
test rsi, rsi
jne 0x1400128e8
call fcn.140043a34
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140043910
jmp 0x140012902
movaps xmm0, xmmword [rbp - 0x40]
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], r15d
mov rax, qword [rdi + 0x60]
lea rcx, [rsp + 0x30]
call qword [case.0x1400290d6.0]
test eax, eax
jns 0x140012930
lfence
mov r8d, eax
lea rdx, str.Escape_failed__hr:_0x_x
xor ecx, ecx
call fcn.1400081f0
mov ebx, 0x80004005
jmp 0x14001296d
lea rax, [rbp - 0x40]
cmp rax, rsi
je 0x14001296d
test rsi, rsi
je 0x140012952
lfence
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
jmp 0x14001296d
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call fcn.140043a34
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140043910
mov rcx, r14
call fcn.140043a54
test ebx, ebx
js 0x1400129b1
cmp dword [rbp - 0x34], 1
jne 0x1400129b1
mov eax, dword [rbp - 0x30]
lea rdx, str.CPHS_disable_status_queried
xor ecx, ecx
mov dword [rdi + 0x28], eax
call fcn.1400081f0
jmp 0x1400129b1
lea rdx, str.m_AdapterHandle_or_m_DeviceHandle__is_null
jmp 0x1400129a5
lea rdx, str.Failure_to_get_handle_to_adapter
xor ecx, ecx
call fcn.1400081f0
mov ebx, 0x80004005
mov r15, qword [rsp + 0x4f8]
mov eax, ebx
mov r14, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x4e8]
jmp 0x1400129e0
lea rdx, str.Unable_to_find_D3DKMT_functions_n
xor ecx, ecx
call fcn.1400081f0
mov eax, 0x80004005
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14001fca0
add rsp, 0x4c0
pop rdi
pop rbx
pop rbp
ret