Function at 0x5ce460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6f4aec], eax
je 0x5ce48a
push 0
push 0x143
push str..Source_r3dTex.cpp
push str.gMainThreadID__GetCurrentThreadId__
call fcn.005bbf90
add esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
mov ecx, edi
call fcn.005bf460
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x30]
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x44]
push ecx
push ebp
push ebx
call edx
mov esi, eax
test esi, esi
je 0x5ce4d7
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x149
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:cubeTex__GetLevelDesc__mipsDown__desc__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [ebx]
mov ecx, dword [eax + 0x34]
push ebx
call ecx
mov ecx, dword [0x6f01a4]
add ecx, 0x50
mov esi, eax
call fcn.005be7e0
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
push 0
sub esi, ebp
push esi
push ecx
push eax
call edx
mov esi, eax
test esi, esi
je 0x5ce53f
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x14f
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:r3dRenderer__pd3ddev__CreateCubeTexture__desc.Width__origLevelCount___mipsDown__0__desc.Format__pool__res__NULL__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push eax
xor ebp, ebp
call edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x5ce801
lea esp, [esp]
xor edi, edi
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx]
add eax, ebp
cmp dword [esp + 0x7c], 0
jne 0x5ce670
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x48]
push edi
push ebx
call eax
mov esi, eax
test esi, esi
je 0x5ce5ac
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x159
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:cubeTex__GetCubeMapSurface__D3DCUBEMAP_FACES__j____i__mipsDown__src__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebp
push edi
push eax
mov eax, dword [ecx + 0x48]
call eax
mov esi, eax
test esi, esi
je 0x5ce5e9
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x15a
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__GetCubeMapSurface__D3DCUBEMAP_FACES__j____i__dest__
call fcn.005bbe50
add esp, 0x10
mov ecx, dword [0x6f01a4]
add ecx, 0x50
call fcn.005be7e0
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x1c]
push 0
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
mov esi, eax
test esi, esi
je 0x5ce637
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x15c
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:r3dRenderer__pd3ddev__UpdateSurface__src__NULL__dest__NULL__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ce64f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5ce7e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
jmp 0x5ce7e8
push 0x10
push 0
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x4c]
push edi
push ebx
call eax
mov esi, eax
test esi, esi
je 0x5ce6ab
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x165
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:cubeTex__LockRect__D3DCUBEMAP_FACES__j____i__mipsDown__from__NULL__D3DLOCK_READONLY__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x28]
push edx
push ebp
push edi
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
test esi, esi
je 0x5ce6ec
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x166
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__LockRect__D3DCUBEMAP_FACES__j____i__to__NULL__0__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x44]
call eax
mov esi, eax
test esi, esi
je 0x5ce728
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x16a
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__GetLevelDesc__i__desc__
call fcn.005bbe50
add esp, 0x10
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
je 0x5ce74b
push 0
push 0x16c
push str..Source_r3dTex.cpp
push str.from.Pitch__to.Pitch
call fcn.005bbf90
add esp, 0x10
mov eax, dword [esp + 0x6c]
imul eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
push edx
push eax
call fcn.005bc160
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.005e5310
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx]
add esp, 0x14
lea eax, [edx + ebp]
push eax
mov eax, dword [ecx + 0x50]
push edi
push ebx
call eax
mov esi, eax
test esi, esi
je 0x5ce7b0
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x16f
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:cubeTex__UnlockRect__D3DCUBEMAP_FACES__j____i__mipsDown__
call fcn.005bbe50
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebp
push edi
push eax
call edx
mov esi, eax
test esi, esi
je 0x5ce7e8
mov ecx, dword [0x6f01a4]
push esi
call fcn.005bf8c0
push 0x170
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__UnlockRect__D3DCUBEMAP_FACES__j____i__
call fcn.005bbe50
add esp, 0x10
inc edi
cmp edi, 6
jl 0x5ce562
inc ebp
cmp ebp, dword [esp + 0x1c]
jl 0x5ce560
mov edi, dword [esp + 0x74]
mov ecx, edi
call fcn.005be9b0
mov esi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6f4aec], eax
je 0x5ce833
push 0
push 0x4a0
push str.c:warz_srceternityinclude_r3dRender.h
push str.gMainThreadID__GetCurrentThreadId__
call fcn.005bbf90
add esp, 0x10
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret