Function at 0x10051bf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x10051c24
mov eax, dword [ebx]
test eax, eax
je 0x10051c18
mov ecx, dword [eax + 0xd0]
test ecx, ecx
je 0x10051c18
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebx]
push eax
call edi
add esp, 4
mov dword [ebx], 0
push 0xd4
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
mov dword [ebx], esi
test esi, esi
je 0x100522ca
push 0x100a2580
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xd0], eax
test eax, eax
jne 0x10051c67
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.nvcuda.dll
jmp 0x10052293
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.cuInit
push eax
call edi
mov dword [esi], eax
test eax, eax
jne 0x10051c8d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuInit
jmp 0x1005228d
push str.cuDeviceGetCount
push dword [esi + 0xd0]
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x10051cb3
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuDeviceGetCount
jmp 0x1005228d
push str.cuDeviceGet
push dword [esi + 0xd0]
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x10051cd9
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuDeviceGet
jmp 0x1005228d
push str.cuDeviceGetAttribute
push dword [esi + 0xd0]
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x10051cff
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuDeviceGetAttribute
jmp 0x1005228d
push str.cuDeviceGetName
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10051d25
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuDeviceGetName
jmp 0x1005228d
push str.cuDeviceComputeCapability
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10051d4b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuDeviceComputeCapability
jmp 0x1005228d
push str.cuCtxCreate_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x10051d71
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuCtxCreate_v2
jmp 0x1005228d
push str.cuCtxSetLimit
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x20], eax
test eax, eax
jne 0x10051d97
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuCtxSetLimit
jmp 0x1005228d
push str.cuCtxPushCurrent_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x24], eax
test eax, eax
jne 0x10051dbd
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuCtxPushCurrent_v2
jmp 0x1005228d
push str.cuCtxPopCurrent_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x28], eax
test eax, eax
jne 0x10051de3
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuCtxPopCurrent_v2
jmp 0x1005228d
push str.cuCtxDestroy_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x10051e09
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuCtxDestroy_v2
jmp 0x1005228d
push str.cuMemAlloc_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x10051e2f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemAlloc_v2
jmp 0x1005228d
push str.cuMemAllocPitch_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x34], eax
test eax, eax
jne 0x10051e55
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemAllocPitch_v2
jmp 0x1005228d
push str.cuMemsetD8Async
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x38], eax
test eax, eax
jne 0x10051e7b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemsetD8Async
jmp 0x1005228d
push str.cuMemFree_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x10051ea1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemFree_v2
jmp 0x1005228d
push str.cuMemcpy2D_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x40], eax
test eax, eax
jne 0x10051ec7
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemcpy2D_v2
jmp 0x1005228d
push str.cuMemcpy2DAsync_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x44], eax
test eax, eax
jne 0x10051eed
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuMemcpy2DAsync_v2
jmp 0x1005228d
push str.cuGetErrorName
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x10051f13
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGetErrorName
jmp 0x1005228d
push str.cuGetErrorString
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x10051f39
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGetErrorString
jmp 0x1005228d
push str.cuStreamCreate
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x50], eax
test eax, eax
jne 0x10051f5f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuStreamCreate
jmp 0x1005228d
push str.cuStreamQuery
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x54], eax
test eax, eax
jne 0x10051f85
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuStreamQuery
jmp 0x1005228d
push str.cuStreamSynchronize
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x58], eax
test eax, eax
jne 0x10051fab
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuStreamSynchronize
jmp 0x1005228d
push str.cuStreamDestroy_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x10051fd1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuStreamDestroy_v2
jmp 0x1005228d
push str.cuStreamAddCallback
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x60], eax
test eax, eax
jne 0x10051ff7
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuStreamAddCallback
jmp 0x1005228d
push str.cuEventCreate
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x64], eax
test eax, eax
jne 0x1005201d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuEventCreate
jmp 0x1005228d
push str.cuEventDestroy_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x68], eax
test eax, eax
jne 0x10052043
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuEventDestroy_v2
jmp 0x1005228d
push str.cuEventSynchronize
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x10052069
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuEventSynchronize
jmp 0x1005228d
push str.cuEventQuery
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x70], eax
test eax, eax
jne 0x1005208f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuEventQuery
jmp 0x1005228d
push str.cuEventRecord
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x74], eax
test eax, eax
jne 0x100520b5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuEventRecord
jmp 0x1005228d
push str.cuLaunchKernel
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x78], eax
test eax, eax
jne 0x100520db
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuLaunchKernel
jmp 0x1005228d
push str.cuModuleLoadData
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x7c], eax
test eax, eax
jne 0x10052101
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuModuleLoadData
jmp 0x1005228d
push str.cuModuleUnload
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x80], eax
test eax, eax
jne 0x1005212a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuModuleUnload
jmp 0x1005228d
push str.cuModuleGetFunction
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x84], eax
test eax, eax
jne 0x10052153
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuModuleGetFunction
jmp 0x1005228d
push str.cuTexObjectCreate
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x88], eax
test eax, eax
jne 0x1005217c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuTexObjectCreate
jmp 0x1005228d
push str.cuTexObjectDestroy
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x8c], eax
test eax, eax
jne 0x100521a5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuTexObjectDestroy
jmp 0x1005228d
push str.cuGLGetDevices_v2
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x90], eax
test eax, eax
jne 0x100521ce
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGLGetDevices_v2
jmp 0x1005228d
push str.cuGraphicsGLRegisterImage
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x94], eax
test eax, eax
jne 0x100521f7
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGraphicsGLRegisterImage
jmp 0x1005228d
push str.cuGraphicsUnregisterResource
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x98], eax
test eax, eax
jne 0x1005221d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGraphicsUnregisterResource
jmp 0x1005228d
push str.cuGraphicsMapResources
push dword [esi + 0xd0]
call edi
mov dword [esi + 0x9c], eax
test eax, eax
jne 0x10052243
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGraphicsMapResources
jmp 0x1005228d
push str.cuGraphicsUnmapResources
push dword [esi + 0xd0]
call edi
mov dword [esi + 0xa0], eax
test eax, eax
jne 0x10052269
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGraphicsUnmapResources
jmp 0x1005228d
push str.cuGraphicsSubResourceGetMappedArray
push dword [esi + 0xd0]
call edi
mov dword [esi + 0xa4], eax
test eax, eax
jne 0x100522d1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, str.cuGraphicsSubResourceGetMappedArray
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ecx
push str.Cannot_load__s_n
push eax
call fcn.100195e0
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x100522be
mov ecx, dword [eax + 0xd0]
test ecx, ecx
je 0x100522be
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebx]
push eax
call edi
add esp, 4
mov dword [ebx], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
push str.cuDeviceGetUuid
push dword [esi + 0xd0]
call edi
push str.cuImportExternalMemory
push dword [esi + 0xd0]
mov dword [esi + 0x14], eax
call edi
push str.cuDestroyExternalMemory
push dword [esi + 0xd0]
mov dword [esi + 0xa8], eax
call edi
push str.cuExternalMemoryGetMappedBuffer
push dword [esi + 0xd0]
mov dword [esi + 0xac], eax
call edi
push str.cuExternalMemoryGetMappedMipmappedArray
push dword [esi + 0xd0]
mov dword [esi + 0xb0], eax
call edi
push str.cuMipmappedArrayGetLevel
push dword [esi + 0xd0]
mov dword [esi + 0xb4], eax
call edi
push str.cuMipmappedArrayDestroy
push dword [esi + 0xd0]
mov dword [esi + 0xbc], eax
call edi
push str.cuImportExternalSemaphore
push dword [esi + 0xd0]
mov dword [esi + 0xb8], eax
call edi
push str.cuDestroyExternalSemaphore
push dword [esi + 0xd0]
mov dword [esi + 0xc0], eax
call edi
push str.cuSignalExternalSemaphoresAsync
push dword [esi + 0xd0]
mov dword [esi + 0xc4], eax
call edi
push str.cuWaitExternalSemaphoresAsync
push dword [esi + 0xd0]
mov dword [esi + 0xc8], eax
call edi
pop edi
mov dword [esi + 0xcc], eax
xor eax, eax
pop esi
pop ebx
ret