Function at 0x14001b500
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 [0x140067250]
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 0x14001b797
lea rax, [0x14004b9f0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004b9f8]
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.140009390
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000a2d0
nop
mov rcx, rax
call fcn.140005760
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001b637
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rax
test rax, rax
je 0x14001b637
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 0x14001b660
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140009b00
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.1400059a0
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.140005370
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea rdx, [rbp + 0x40]
call fcn.14000a2d0
nop
mov rcx, rax
call fcn.140005760
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001b773
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rax
test rax, rax
je 0x14001b773
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.140010690
mov rcx, rbx
call fcn.14000a200
nop
jmp 0x14001c080
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 0x14001be9b
cmp qword [r15 + 0x18], rdi
je 0x14001be9b
cmp qword [r15 + 0x38], rdi
je 0x14001be9b
cmp qword [r15 + 0x28], rdi
je 0x14001be9b
cmp qword [r15 + 0x30], rdi
je 0x14001be9b
test rax, rax
je 0x14001be9b
lea rdx, [rbp + 0x70]
mov rcx, r15
call fcn.14001c0e0
mov ebx, eax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.DeviceFound_:
call fcn.140005370
mov rcx, rax
mov edx, ebx
call fcn.140011250
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Display_Name_is:
call fcn.140005370
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.14000b9b0
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
test ebx, ebx
je 0x14001b973
lea rcx, [rbp + 0x70]
call qword [r15 + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov ebx, eax
test eax, eax
je 0x14001b964
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.pfnOpenAdapterFromGDIDisplayName_failed__ntStatus
call fcn.140005370
mov rcx, rax
mov edx, ebx
call fcn.1400113f0
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
jmp 0x14001c090
mov eax, dword [rbp + 0xb0]
mov dword [r15 + 0xc], eax
jmp 0x14001be4c
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Starting_in_Session_0
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
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 0x14001be4c
mov dword [rbp + 0xc0], SafeArrayAllocDescriptorEx
mov dword [rbp + 0xe0], SafeArrayAllocDescriptorEx
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 0x14001ba20
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Enumerated_Device_Count:
call fcn.140005370
mov rcx, rax
mov edx, r12d
call fcn.140011250
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
mov r13d, edi
test r12d, r12d
jle 0x14001be4c
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 0x14001bdf6
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 0x14001bb70
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
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.140005370
mov rcx, rax
mov edx, edi
call fcn.14000cbb0
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
mov rbx, qword [rsp + 0x30]
jmp 0x14001bc92
test rsi, rsi
je 0x14001bbcc
cmp dword [rbp + 0x40], 0
jbe 0x14001bbe7
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Allocation_of_buffer_required
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
mov rcx, rsi
call fcn.14003034c
mov ecx, dword [rbp + 0x40]
lea rdx, [0x14006a59c]
call fcn.140030698
mov rsi, rax
test rax, rax
je 0x14001bdab
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 0x14001bc68
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140005dd0
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.140005370
mov rcx, rax
mov edx, edi
call fcn.14000cbb0
mov rcx, rax
call fcn.140010fa0
nop
jmp 0x14001bb50
lea rdx, str.VEN_8086
lea rcx, [rsi + 4]
call fcn.14002dbc0
test rax, rax
jne 0x14001bca8
lea rdx, str.ven_8086
lea rcx, [rsi + 4]
call fcn.14002dbc0
test rax, rax
jne 0x14001bca8
inc r13d
cmp r13d, r12d
mov edi, 0
jl 0x14001bab0
jmp 0x14001be3f
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rbx, [rsi + 4]
lea rdx, str.Intel_Device_Detected:
call fcn.140005370
mov rcx, rax
mov rdx, rbx
call fcn.14000b9b0
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
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 + DispGetParam]
mov edx, 1
lea rcx, [rsp + 0x38]
test eax, eax
je 0x14001bd79
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_failed:
call fcn.140005370
mov rcx, rax
mov rdx, rbx
call fcn.14000b9b0
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
xor edi, edi
jmp 0x14001be3f
mov eax, dword [rbp + 0x50]
mov dword [r15 + 0xc], eax
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_success:
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
jmp 0x14001bd5c
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Cannot_Allocate_Memory
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
jmp 0x14001be4c
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.SetupDiEnumDeviceInterfaces_Failed
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
test rsi, rsi
je 0x14001be4c
mov rcx, rsi
call fcn.14003034c
cmp dword [r15 + 0xc], 0
jne 0x14001be94
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005dd0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Failure_to_get_handle_to_adapter
call fcn.140005370
mov rcx, rax
call fcn.140010fa0
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
jmp 0x14001c090
mov eax, edi
jmp 0x14001c0a2
lea rax, [0x14004b9f0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004b9f8]
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.140009390
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000a2d0
nop
mov rcx, rax
call fcn.140005760
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001bf24
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001bf24
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 0x14001bf4d
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140009b00
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.1400059a0
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.140005370
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
lea rdx, [rbp + 0x40]
call fcn.14000a2d0
nop
mov rcx, rax
call fcn.140005760
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001c061
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001c061
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.140010690
mov rcx, rbx
call fcn.14000a200
nop
lea rcx, [rbp - 0x28]
call fcn.14000c860
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042f98
mov eax, 0x80004005
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14002d7f0
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