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

Disassembly:
sub esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6bd53c], eax
je 0x57e60a
push 0
push 0x1d6
push str..Source_r3dTex.cpp
push str.gMainThreadID__GetCurrentThreadId__
call fcn.0056b7e0
add esp, 0x10
mov ecx, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
call fcn.0056ed10
mov ebx, dword [esp + 0x78]
lea ecx, [esp + 0x38]
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push ecx
push ebx
push edi
call edx
mov esi, eax
test esi, esi
je 0x57e655
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1dc
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:volTex__GetLevelDesc__mipsDown__desc__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [edi]
mov ecx, dword [eax + 0x34]
push edi
call ecx
mov esi, dword [esp + 0x7c]
mov ebp, eax
sub ebp, ebx
mov dword [esp + 0x1c], ebp
test esi, esi
jne 0x57e672
mov esi, 2
mov ecx, dword [0x6b89e4]
add ecx, 0x50
call fcn.0056dff0
mov edx, dword [eax]
mov edx, dword [edx + 0x60]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x60]
push 0
push ebp
push ecx
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
je 0x57e6d1
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1e9
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:r3dRenderer__pd3ddev__CreateVolumeTexture__desc.Width__desc.Height__desc.Depth__finalMipCount__0__desc.Format__pool__D3DPOOL_DEFAULT___D3DPOOL_SYSTEMMEM_:_pool__res__NULL__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push eax
xor ebx, ebx
call edx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x57e87c
jmp 0x57e6f0
mov eax, dword [esp + 0x78]
mov ecx, dword [edi]
push 0x10
push 0
lea edx, [esp + 0x34]
lea ebp, [ebx + eax]
mov eax, dword [ecx + 0x4c]
push edx
push ebp
push edi
call eax
mov esi, eax
test esi, esi
je 0x57e733
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1ef
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:volTex__LockBox__i__mipsDown__from__NULL__D3DLOCK_READONLY__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
test esi, esi
je 0x57e773
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1f0
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__LockBox__i__to__NULL__0__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov esi, eax
test esi, esi
je 0x57e7af
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1f4
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.0056b6a0
add esp, 0x10
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x20]
jne 0x57e7c3
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x24]
je 0x57e7dc
push 0
push 0x1f7
push str..Source_r3dTex.cpp
push str.from.RowPitch__to.RowPitch__from.SlicePitch__to.SlicePitch
call fcn.0056b7e0
add esp, 0x10
mov ecx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
push eax
push ecx
call fcn.0056b9b0
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00594e80
mov ecx, dword [edi]
mov edx, dword [ecx + 0x50]
add esp, 0x14
push ebp
push edi
call edx
mov esi, eax
test esi, esi
je 0x57e836
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1fb
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:volTex__UnlockBox__i__mipsDown__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov esi, eax
test esi, esi
je 0x57e86d
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x1fc
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:res__UnlockBox__i__
call fcn.0056b6a0
add esp, 0x10
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x57e6f0
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x7c], 0
jne 0x57e959
mov ecx, dword [0x6b89e4]
add ecx, 0x50
call fcn.0056dff0
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push 0
push edx
mov edx, dword [esp + 0x60]
push 0
push ebp
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 0x60]
call eax
mov esi, eax
test esi, esi
je 0x57e8e7
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x203
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:r3dRenderer__pd3ddev__CreateVolumeTexture__desc.Width__desc.Height__desc.Depth__finalMipCount__0__desc.Format__pool__final__NULL__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0
push eax
call edx
mov ecx, dword [0x6b89e4]
add ecx, 0x50
call fcn.0056dff0
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov esi, eax
test esi, esi
je 0x57e93f
mov ecx, dword [0x6b89e4]
push esi
call fcn.0056f0e0
push 0x207
push str..Source_r3dTex.cpp
push esi
push str.D3D_call_failed___d__in_file__s_line__d._D3D_Call:r3dRenderer__pd3ddev__UpdateTexture__res__final__
call fcn.0056b6a0
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x57e961
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], 0
jmp 0x57e961
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x74]
mov ecx, edi
call fcn.0056e1c0
mov esi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6bd53c], eax
je 0x57e997
push 0
push 0x4a0
push str.c:warz_srceternityinclude_r3dRender.h
push str.gMainThreadID__GetCurrentThreadId__
call fcn.0056b7e0
add esp, 0x10
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret