Function at 0x1400032d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140083018]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, rcx
test rcx, rcx
je 0x14000382a
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000382a
lea rdx, str.D3DKMTCreateAllocation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroyAllocation
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetAllocationPriority
mov rcx, rbx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTQueryAllocationResidency
mov rcx, rbx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTQueryResourceInfo
mov rcx, rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTOpenResource
mov rcx, rbx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCreateDevice
mov rcx, rbx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroyDevice
mov rcx, rbx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTQueryAdapterInfo
mov rcx, rbx
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTLock
mov rcx, rbx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTUnlock
mov rcx, rbx
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetDisplayModeList
mov rcx, rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetDisplayMode
mov rcx, rbx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetMultisampleMethodList
mov rcx, rbx
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTPresent
mov rcx, rbx
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTRender
mov rcx, rbx
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTOpenAdapterFromHdc
mov rcx, rbx
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov rcx, rbx
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCloseAdapter
mov rcx, rbx
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetSharedPrimaryHandle
mov rcx, rbx
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x48], rax
lea rdx, str.D3DKMTEscape
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetVidPnSourceOwner
mov rcx, rbx
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCreateOverlay
mov rcx, rbx
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTUpdateOverlay
mov rcx, rbx
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTFlipOverlay
mov rcx, rbx
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroyOverlay
mov rcx, rbx
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTWaitForVerticalBlankEvent
mov rcx, rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetGammaRamp
mov rcx, rbx
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetDeviceState
mov rcx, rbx
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCreateDCFromMemory
mov rcx, rbx
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroyDCFromMemory
mov rcx, rbx
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetContextSchedulingPriority
mov rcx, rbx
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetContextSchedulingPriority
mov rcx, rbx
mov qword [rbp + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetProcessSchedulingPriorityClass
mov rcx, rbx
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetProcessSchedulingPriorityClass
mov rcx, rbx
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTReleaseProcessVidPnSourceOwners
mov rcx, rbx
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTGetScanLine
mov rcx, rbx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTPollDisplayChildren
mov rcx, rbx
mov qword [rbp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetQueuedLimit
mov rcx, rbx
mov qword [rbp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTInvalidateActiveVidPn
mov rcx, rbx
mov qword [rbp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x58], rax
lea rdx, str.D3DKMTCheckOcclusion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCreateContext
mov rcx, rbx
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroyContext
mov rcx, rbx
mov qword [rbp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCreateSynchronizationObject
mov rcx, rbx
mov qword [rbp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTDestroySynchronizationObject
mov rcx, rbx
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTWaitForSynchronizationObject
mov rcx, rbx
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSignalSynchronizationObject
mov rcx, rbx
mov qword [rbp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCheckMonitorPowerState
mov rcx, rbx
mov qword [rbp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov rcx, rbx
mov qword [rbp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTCheckExclusiveOwnership
mov rcx, rbx
mov qword [rbp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSetDisplayPrivateDriverFormat
mov rcx, rbx
mov qword [rbp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSharedPrimaryLockNotification
mov rcx, rbx
mov qword [rbp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTSharedPrimaryUnLockNotification
mov rcx, rbx
mov qword [rbp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.D3DKMTQueryStatistics
mov rcx, rbx
mov qword [rbp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
xor ecx, ecx
lea rax, [rsp + 0x20]
nop dword [rax]
cmp qword [rax], 0
je 0x14000382a
inc ecx
add rax, 8
cmp ecx, 0x36
jb 0x140003790
mov qword [rdi], rbx
lea rcx, [rdi + 8]
lea rax, [rsp + 0x20]
mov edx, 3
nop word [rax + rax]
movups xmm0, xmmword [rax]
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400037c0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
mov al, 1
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm0
jmp 0x14000382c
xor al, al
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140005bf0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret