Function at 0x40fc00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
mov ecx, 0x10
xor eax, eax
mov edi, 0x42b7a0
rep stosd dword es:[edi], eax
push str.gdi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40fc3e
xor eax, eax
jmp 0x40fe06
push str.D3DKMTCreateAllocation
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7a0], eax
push str.D3DKMTQueryResourceInfo
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7a4], eax
push str.D3DKMTOpenResource
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7a8], eax
push str.D3DKMTDestroyAllocation
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7ac], eax
push str.D3DKMTSetAllocationPriority
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7b0], eax
push str.D3DKMTQueryAllocationResidency
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7b4], eax
push str.D3DKMTCreateDevice
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7b8], eax
push str.D3DKMTDestroyDevice
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7bc], eax
push str.D3DKMTQueryAdapterInfo
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7c0], eax
push str.D3DKMTLock
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7c4], eax
push str.D3DKMTUnlock
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7c8], eax
push str.D3DKMTRender
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7cc], eax
push str.D3DKMTOpenAdapterFromHdc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7d0], eax
push str.D3DKMTGetSharedPrimaryHandle
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7d4], eax
push str.D3DKMTEscape
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7d8], eax
push str.D3DKMTCloseAdapter
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b7dc], eax
cmp dword [0x42b7a0], 0
je 0x40fdfc
cmp dword [0x42b7a4], 0
je 0x40fdfc
cmp dword [0x42b7a8], 0
je 0x40fdfc
cmp dword [0x42b7ac], 0
je 0x40fdfc
cmp dword [0x42b7b8], 0
je 0x40fdfc
cmp dword [0x42b7bc], 0
je 0x40fdfc
cmp dword [0x42b7c0], 0
je 0x40fdfc
cmp dword [0x42b7c4], 0
je 0x40fdfc
cmp dword [0x42b7c8], 0
je 0x40fdfc
cmp dword [0x42b7cc], 0
je 0x40fdfc
cmp dword [0x42b7d0], 0
je 0x40fdfc
cmp dword [0x42b7d4], 0
je 0x40fdfc
cmp dword [0x42b7d8], 0
je 0x40fdfc
cmp dword [0x42b7dc], 0
jne 0x40fe03
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret