Function at 0x407fb0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.gdi32.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x408182
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.D3DKMTOpenAdapterFromDeviceName
push eax
call esi
push str.D3DKMTCloseAdapter
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.D3DKMTQueryAdapterInfo
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.D3DKMTCreateDevice
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.D3DKMTDestroyDevice
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.D3DKMTCreateContext
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.D3DKMTDestroyContext
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.D3DKMTCreateAllocation
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.D3DKMTOpenResource
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.D3DKMTQueryResourceInfo
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.D3DKMTDestroyAllocation
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.D3DKMTLock
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push str.D3DKMTUnlock
push dword [edi]
mov dword [edi + 0x34], eax
call esi
push str.D3DKMTRender
push dword [edi]
mov dword [edi + 0x38], eax
call esi
push str.D3DKMTEscape
push dword [edi]
mov dword [edi + 0x3c], eax
call esi
push str.D3DKMTCreateSynchronizationObject2
push dword [edi]
mov dword [edi + 0x40], eax
call esi
push str.D3DKMTDestroySynchronizationObject
push dword [edi]
mov dword [edi + 0x44], eax
call esi
push str.D3DKMTReserveGpuVirtualAddress
push dword [edi]
mov dword [edi + 0x48], eax
call esi
push str.D3DKMTUpdateGpuVirtualAddress
push dword [edi]
mov dword [edi + 0x4c], eax
call esi
push str.D3DKMTMakeResident
push dword [edi]
mov dword [edi + 0x50], eax
call esi
push str.D3DKMTEvict
push dword [edi]
mov dword [edi + 0x54], eax
call esi
push str.D3DKMTCreatePagingQueue
push dword [edi]
mov dword [edi + 0x58], eax
call esi
push str.D3DKMTDestroyPagingQueue
push dword [edi]
mov dword [edi + 0x5c], eax
call esi
push str.D3DKMTSubmitCommand
push dword [edi]
mov dword [edi + 0x60], eax
call esi
push str.D3DKMTCreateContextVirtual
push dword [edi]
mov dword [edi + 0x64], eax
call esi
push str.D3DKMTMapGpuVirtualAddress
push dword [edi]
mov dword [edi + 0x68], eax
call esi
push str.D3DKMTFreeGpuVirtualAddress
push dword [edi]
mov dword [edi + 0x6c], eax
call esi
push str.D3DKMTWaitForSynchronizationObjectFromGpu
push dword [edi]
mov dword [edi + 0x70], eax
call esi
push str.D3DKMTWaitForSynchronizationObjectFromCpu
push dword [edi]
mov dword [edi + 0x74], eax
call esi
push str.D3DKMTSignalSynchronizationObjectFromCpu
push dword [edi]
mov dword [edi + 0x78], eax
call esi
push str.D3DKMTSignalSynchronizationObjectFromGpu
push dword [edi]
mov dword [edi + 0x7c], eax
call esi
push str.D3DKMTSignalSynchronizationObjectFromGpu2
push dword [edi]
mov dword [edi + 0x80], eax
call esi
push str.D3DKMTLock2
push dword [edi]
mov dword [edi + 0x84], eax
call esi
push str.D3DKMTUnlock2
push dword [edi]
mov dword [edi + 0x88], eax
call esi
push str.D3DKMT
push dword [edi]
mov dword [edi + 0x8c], eax
call esi
mov dword [edi + 0x90], eax
pop esi
cmp dword [edi + 8], 0
je 0x4081e0
cmp dword [edi + 0xc], 0
je 0x4081e0
cmp dword [edi + 0x10], 0
je 0x4081e0
cmp dword [edi + 0x14], 0
je 0x4081e0
cmp dword [edi + 0x18], 0
je 0x4081e0
cmp dword [edi + 0x1c], 0
je 0x4081e0
cmp dword [edi + 0x20], 0
je 0x4081e0
cmp dword [edi + 0x24], 0
je 0x4081e0
cmp dword [edi + 0x28], 0
je 0x4081e0
cmp dword [edi + 0x2c], 0
je 0x4081e0
cmp dword [edi + 0x30], 0
je 0x4081e0
cmp dword [edi + 0x34], 0
je 0x4081e0
cmp dword [edi + 0x38], 0
je 0x4081e0
cmp dword [edi + 0x3c], 0
je 0x4081e0
cmp dword [edi + 0x40], 0
je 0x4081e0
mov byte [edi + 4], 1
pop edi
ret 4