Function at 0x14001d5b0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140069250]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r15, rcx
xor edi, edi
mov dword [rbp + 0x40], edi
mov word [rbp + 0x70], di
xor eax, eax
mov qword [rbp + 0x72], rax
mov qword [rbp + 0x7a], rax
mov qword [rbp + 0x82], rax
mov qword [rbp + 0x8a], rax
mov qword [rbp + 0x92], rax
mov qword [rbp + 0x9a], rax
mov qword [rbp + 0xa2], rax
mov dword [rbp + 0xaa], eax
mov word [rbp + 0xae], ax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [r15], rax
test rax, rax
jne 0x14001d847
lea rax, [0x14004d9b0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004d9b8]
mov qword [rsp + 0x48], rax
mov dword [rbp + 0x40], 1
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], 0x88
mov qword [rsp + 0x40], rdi
lea rcx, [rbp - 0x28]
call fcn.14000b4a0
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000c3e0
nop
mov rcx, rax
call fcn.140007840
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d6e7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14001d6e7
mov rax, qword [rax]
lea edx, [rdi + 1]
call qword [rax]
mov rax, qword [rbx]
mov dl, 0x20
mov rcx, rbx
call qword [rax + 0x60]
mov word [rbp + 0x30], ax
cmp qword [rbp + 0x20], 0
jne 0x14001d710
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.14000bc10
nop
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x44], edx
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x34], edx
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x34], edx
lea rcx, [rsp + 0x50]
call fcn.140007a80
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], edi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x34], edx
mov dword [rbp - 0x38], 0xa
lea rdx, str.m_Gdi32Handle_is_NULL
lea rcx, [rsp + 0x48]
call fcn.140007450
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea rdx, [rbp + 0x40]
call fcn.14000c3e0
nop
mov rcx, rax
call fcn.140007840
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001d823
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14001d823
mov rax, qword [rax]
mov edx, 1
call qword [rax]
mov rax, qword [rdi]
mov dl, 0xa
mov rcx, rdi
call qword [rax + 0x60]
movzx edx, ax
mov rcx, rbx
call fcn.140012800
mov rcx, rbx
call fcn.14000c310
nop
jmp 0x14001e130
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x10], rax
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x18], rax
lea rdx, str.D3DKMTEscape
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x38], rax
lea rdx, str.D3DKMTCreateDevice
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x28], rax
lea rdx, str.D3DKMTDestroyDevice
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x30], rax
lea rdx, str.D3DKMTCloseAdapter
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x20], rax
cmp qword [r15 + 0x10], rdi
je 0x14001df4b
cmp qword [r15 + 0x18], rdi
je 0x14001df4b
cmp qword [r15 + 0x38], rdi
je 0x14001df4b
cmp qword [r15 + 0x28], rdi
je 0x14001df4b
cmp qword [r15 + 0x30], rdi
je 0x14001df4b
test rax, rax
je 0x14001df4b
lea rdx, [rbp + 0x70]
mov rcx, r15
call fcn.14001e190
mov ebx, eax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.DeviceFound_:
call fcn.140007450
mov rcx, rax
mov edx, ebx
call fcn.1400133c0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Display_Name_is:
call fcn.140007450
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.14000dae0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
test ebx, ebx
je 0x14001da23
lea rcx, [rbp + 0x70]
call qword [r15 + 0x10]
mov ebx, eax
test eax, eax
je 0x14001da14
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.pfnOpenAdapterFromGDIDisplayName_failed__ntStatus
call fcn.140007450
mov rcx, rax
mov edx, ebx
call fcn.140013560
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
jmp 0x14001e140
mov eax, dword [rbp + 0xb0]
mov dword [r15 + 0xc], eax
jmp 0x14001defc
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Starting_in_Session_0
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov rsi, rdi
or r12d, 0xffffffff
mov dword [rbp + 0x60], 0x1ca05180
mov dword [rbp + 0x64], 0x450aa699
mov dword [rbp + 0x68], 0x4fde0c9a
mov dword [rbp + 0x6c], 0x89dd3dbe
lea r9d, [r12 + 0x13]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x14001defc
mov dword [rbp + 0xc0], 0x20
mov dword [rbp + 0xe0], 0x20
nop dword [rax]
inc r12d
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x14001dad0
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Enumerated_Device_Count:
call fcn.140007450
mov rcx, rax
mov edx, r12d
call fcn.1400133c0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov r13d, edi
test r12d, r12d
jle 0x14001defc
nop dword [rax]
nop word [rax + rax]
mov dword [rbp + 0x40], edi
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x14001dea6
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001dc20
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rbx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.SetupDiGetDeviceInterfaceDetail_Failed
mov rcx, rbx
call fcn.140007450
mov rcx, rax
mov edx, edi
call fcn.14000ece0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov rbx, qword [rsp + 0x30]
jmp 0x14001dd42
test rsi, rsi
je 0x14001dc7c
cmp dword [rbp + 0x40], 0
jbe 0x14001dc97
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Allocation_of_buffer_required
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov rcx, rsi
call fcn.14003236c
mov ecx, dword [rbp + 0x40]
lea rdx, [0x14006c59c]
call fcn.1400326b8
mov rsi, rax
test rax, rax
je 0x14001de5b
mov dword [rsi], 8
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x40]
mov r8, rsi
lea rdx, [rbp + 0xc0]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x14001dd18
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rbx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.SetupDiGetDeviceInterfaceDetail_Failed
mov rcx, rbx
call fcn.140007450
mov rcx, rax
mov edx, edi
call fcn.14000ece0
mov rcx, rax
call fcn.140013110
nop
jmp 0x14001dc00
lea rdx, str.VEN_8086
lea rcx, [rsi + 4]
call fcn.14002fbe0
test rax, rax
jne 0x14001dd58
lea rdx, str.ven_8086
lea rcx, [rsi + 4]
call fcn.14002fbe0
test rax, rax
jne 0x14001dd58
inc r13d
cmp r13d, r12d
mov edi, 0
jl 0x14001db60
jmp 0x14001deef
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rbx, [rsi + 4]
lea rdx, str.Intel_Device_Detected:
call fcn.140007450
mov rcx, rax
mov rdx, rbx
call fcn.14000dae0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
xor eax, eax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x48], rbx
lea rcx, [rbp + 0x48]
call qword [r15 + 0x18]
mov edx, 1
lea rcx, [rsp + 0x38]
test eax, eax
je 0x14001de29
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_failed:
call fcn.140007450
mov rcx, rax
mov rdx, rbx
call fcn.14000dae0
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
xor edi, edi
jmp 0x14001deef
mov eax, dword [rbp + 0x50]
mov dword [r15 + 0xc], eax
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_success:
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
jmp 0x14001de0c
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Cannot_Allocate_Memory
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
jmp 0x14001defc
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.SetupDiEnumDeviceInterfaces_Failed
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
test rsi, rsi
je 0x14001defc
mov rcx, rsi
call fcn.14003236c
cmp dword [r15 + 0xc], 0
jne 0x14001df44
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007eb0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Failure_to_get_handle_to_adapter
call fcn.140007450
mov rcx, rax
call fcn.140013110
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
jmp 0x14001e140
mov eax, edi
jmp 0x14001e152
lea rax, [0x14004d9b0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004d9b8]
mov qword [rsp + 0x48], rax
mov dword [rbp + 0x40], 0x20
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], 0x88
mov qword [rsp + 0x40], rdi
lea rcx, [rbp - 0x28]
call fcn.14000b4a0
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000c3e0
nop
mov rcx, rax
call fcn.140007840
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001dfd4
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14001dfd4
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
mov dl, 0x20
mov rcx, rbx
call qword [rax + 0x60]
mov word [rbp + 0x30], ax
cmp qword [rbp + 0x20], 0
jne 0x14001dffd
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.14000bc10
nop
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x44], edx
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x34], edx
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x34], edx
lea rcx, [rsp + 0x50]
call fcn.140007a80
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], edi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x34], edx
mov dword [rbp - 0x38], 0xa
lea rdx, str.Ones_of_the_retrieved_function_poiters_is_NULL
lea rcx, [rsp + 0x48]
call fcn.140007450
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
lea rdx, [rbp + 0x40]
call fcn.14000c3e0
nop
mov rcx, rax
call fcn.140007840
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001e111
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14001e111
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rdi]
mov dl, 0xa
mov rcx, rdi
call qword [rax + 0x60]
movzx edx, ax
mov rcx, rbx
call fcn.140012800
mov rcx, rbx
call fcn.14000c310
nop
lea rcx, [rbp - 0x28]
call fcn.14000e990
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140044fb8
mov eax, 0x80004005
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14002f810
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret