Function at 0x14001b5b0
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 0x14001b847
lea rax, [0x14004b9b0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004b9b8]
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.1400094a0
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000a3e0
nop
mov rcx, rax
call fcn.140005840
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001b6e7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rax
test rax, rax
je 0x14001b6e7
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 0x14001b710
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140009c10
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.140005a80
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.140005450
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea rdx, [rbp + 0x40]
call fcn.14000a3e0
nop
mov rcx, rax
call fcn.140005840
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001b823
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rax
test rax, rax
je 0x14001b823
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.140010800
mov rcx, rbx
call fcn.14000a310
nop
jmp 0x14001c130
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 0x14001bf4b
cmp qword [r15 + 0x18], rdi
je 0x14001bf4b
cmp qword [r15 + 0x38], rdi
je 0x14001bf4b
cmp qword [r15 + 0x28], rdi
je 0x14001bf4b
cmp qword [r15 + 0x30], rdi
je 0x14001bf4b
test rax, rax
je 0x14001bf4b
lea rdx, [rbp + 0x70]
mov rcx, r15
call fcn.14001c190
mov ebx, eax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.DeviceFound_:
call fcn.140005450
mov rcx, rax
mov edx, ebx
call fcn.1400113c0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Display_Name_is:
call fcn.140005450
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.14000bae0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
test ebx, ebx
je 0x14001ba23
lea rcx, [rbp + 0x70]
call qword [r15 + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov ebx, eax
test eax, eax
je 0x14001ba14
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.pfnOpenAdapterFromGDIDisplayName_failed__ntStatus
call fcn.140005450
mov rcx, rax
mov edx, ebx
call fcn.140011560
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
jmp 0x14001c140
mov eax, dword [rbp + 0xb0]
mov dword [r15 + 0xc], eax
jmp 0x14001befc
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Starting_in_Session_0
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
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 0x14001befc
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 0x14001bad0
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Enumerated_Device_Count:
call fcn.140005450
mov rcx, rax
mov edx, r12d
call fcn.1400113c0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
mov r13d, edi
test r12d, r12d
jle 0x14001befc
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 0x14001bea6
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 0x14001bc20
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
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.140005450
mov rcx, rax
mov edx, edi
call fcn.14000cce0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
mov rbx, qword [rsp + 0x30]
jmp 0x14001bd42
test rsi, rsi
je 0x14001bc7c
cmp dword [rbp + 0x40], 0
jbe 0x14001bc97
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Allocation_of_buffer_required
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
mov rcx, rsi
call fcn.14003036c
mov ecx, dword [rbp + 0x40]
lea rdx, [0x14006a59c]
call fcn.1400306b8
mov rsi, rax
test rax, rax
je 0x14001be5b
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 0x14001bd18
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.140005eb0
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.140005450
mov rcx, rax
mov edx, edi
call fcn.14000cce0
mov rcx, rax
call fcn.140011110
nop
jmp 0x14001bc00
lea rdx, str.VEN_8086
lea rcx, [rsi + 4]
call fcn.14002dbe0
test rax, rax
jne 0x14001bd58
lea rdx, str.ven_8086
lea rcx, [rsi + 4]
call fcn.14002dbe0
test rax, rax
jne 0x14001bd58
inc r13d
cmp r13d, r12d
mov edi, 0
jl 0x14001bb60
jmp 0x14001beef
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rbx, [rsi + 4]
lea rdx, str.Intel_Device_Detected:
call fcn.140005450
mov rcx, rax
mov rdx, rbx
call fcn.14000bae0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
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 0x14001be29
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_failed:
call fcn.140005450
mov rcx, rax
mov rdx, rbx
call fcn.14000bae0
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
xor edi, edi
jmp 0x14001beef
mov eax, dword [rbp + 0x50]
mov dword [r15 + 0xc], eax
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.OpenAdapter_success:
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
jmp 0x14001be0c
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Cannot_Allocate_Memory
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
jmp 0x14001befc
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.SetupDiEnumDeviceInterfaces_Failed
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
test rsi, rsi
je 0x14001befc
mov rcx, rsi
call fcn.14003036c
cmp dword [r15 + 0xc], 0
jne 0x14001bf44
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140005eb0
nop
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Failure_to_get_handle_to_adapter
call fcn.140005450
mov rcx, rax
call fcn.140011110
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
jmp 0x14001c140
mov eax, edi
jmp 0x14001c152
lea rax, [0x14004b9b0]
mov qword [rsp + 0x38], rax
lea rax, [0x14004b9b8]
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.1400094a0
lea rax, [rsp + 0x50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000a3e0
nop
mov rcx, rax
call fcn.140005840
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001bfd4
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001bfd4
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 0x14001bffd
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140009c10
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.140005a80
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.140005450
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
lea rdx, [rbp + 0x40]
call fcn.14000a3e0
nop
mov rcx, rax
call fcn.140005840
mov rdi, rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001c111
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x14001c111
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.140010800
mov rcx, rbx
call fcn.14000a310
nop
lea rcx, [rbp - 0x28]
call fcn.14000c990
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x28]
call fcn.140042fb8
mov eax, 0x80004005
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14002d810
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