Function at 0x14000f060
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14006f0d8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xorps xmm1, xmm1
xorps xmm0, xmm0
mov rbx, 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 - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14000f0de
lea rdx, str._Unable_to_link_with_gdi32.dll_n
jmp 0x14000f3d6
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov qword [rbp - 0x80], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.D3DKMTCloseAdapter
mov qword [rbp - 0x78], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.D3DKMTCreateDevice
mov qword [rbp - 0x70], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.D3DKMTDestroyDevice
mov qword [rbp - 0x68], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.D3DKMTEscape
mov qword [rbp - 0x60], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
movups xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x58], rax
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x48], xmm1
movups xmmword [rbx + 0x58], xmm0
cmp qword [rbx + 0x50], 0
je 0x14000f3cf
cmp qword [rbx + 0x58], 0
je 0x14000f3cf
cmp qword [rbx + 0x38], 0
je 0x14000f3cf
cmp qword [rbx + 0x40], 0
je 0x14000f3cf
cmp qword [rbx + 0x48], 0
je 0x14000f3cf
cmp qword [rbx + 0x60], 0
je 0x14000f3cf
mov qword [rsp + 0x4a8], rsi
lea rcx, [rbp + 0x34]
xor edx, edx
mov r8d, 0x344
xor esi, esi
xor edi, edi
call fcn.140039360
xor r9d, r9d
mov dword [rbp + 0x30], 0x348
lea r8, [rbp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.user32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x14000f256
nop
lea r8, [rbp + 0x178]
xor ecx, ecx
lea rdx, str.Device__ID:_0x_x
call fcn.1400063c0
test byte [rbp + 0x174], 1
je 0x14000f226
lea rdx, str.VEN_8086
lea rcx, [rbp + 0x178]
call fcn.140039500
test rax, rax
jne 0x14000f23f
inc edi
lea r8, [rbp + 0x30]
mov edx, edi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.user32.dll_EnumDisplayDevicesW]
test eax, eax
jne 0x14000f1f0
jmp 0x14000f256
lea r8, [rbp + 0x34]
mov edx, 0x20
lea rcx, [rbp - 0x20]
call fcn.14003f918
mov esi, 1
mov r8d, esi
lea rdx, str.DeviceFound_:__d
xor ecx, ecx
call fcn.1400063c0
lea r8, [rbp - 0x20]
xor ecx, ecx
lea rdx, str.Display_Name_is:__s
call fcn.1400063c0
test esi, esi
mov rsi, qword [rsp + 0x4a8]
je 0x14000f2bf
mov rax, qword [rbx + 0x38]
lea rcx, [rbp - 0x20]
call qword [case.0x14002363a.0]
test eax, eax
je 0x14000f2b4
mov r8d, eax
lea rdx, str.pfnOpenAdapterFromGDIDisplayName_failed__0x_x
xor ecx, ecx
call fcn.1400063c0
mov edi, 0x80004005
mov eax, edi
jmp 0x14000f3e2
mov eax, dword [rbp + 0x20]
lea rdi, [rbx + 0x24]
mov dword [rdi], eax
jmp 0x14000f2fb
lea rdi, [rbx + 0x24]
mov dword [rsp + 0x70], 0x1ca05180
mov r8, rdi
mov dword [rsp + 0x74], 0x450aa699
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x78], 0x4fde0c9a
mov rcx, rbx
mov dword [rsp + 0x7c], 0x89dd3dbe
call fcn.14000e9b0
test eax, eax
jne 0x14000f3b8
mov eax, dword [rdi]
test eax, eax
je 0x14000f3b8
or dword [rsp + 0x38], 1
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x50]
call qword [case.0x14002363a.0]
test eax, eax
je 0x14000f33e
mov r8d, eax
lea rdx, str.pfnCreateDevice_failed__x
xor ecx, ecx
call fcn.1400063c0
mov edi, 0x80004005
mov eax, edi
jmp 0x14000f3e2
mov eax, dword [rsp + 0x3c]
xorps xmm0, xmm0
mov dword [rbx + 0x20], eax
xor eax, eax
movaps xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x30], eax
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x70], reloc.OLEAUT32.dll_SafeArrayAccessData
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
xor r9d, r9d
mov dword [rsp + 0x28], 5
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x6c], eax
mov rcx, rbx
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 0x44]
call fcn.14000e7b0
mov edi, eax
test eax, eax
js 0x14000f3cb
cmp dword [rbp - 0x64], 1
jne 0x14000f3cb
mov ecx, dword [rbp - 0x60]
lea rdx, str.CPHS_disable_status_queried
mov dword [rbx + 0x28], ecx
xor ecx, ecx
call fcn.1400063c0
mov eax, edi
jmp 0x14000f3e2
lea rdx, str.Failure_to_get_handle_to_adapter
xor ecx, ecx
call fcn.1400063c0
mov edi, 0x80004005
mov eax, edi
jmp 0x14000f3e2
lea rdx, str.Unable_to_find_D3DKMT_functions_n
xor ecx, ecx
call fcn.1400063c0
mov eax, 0x80004005
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14001a210
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret