Function at 0x64eca5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax + 0x6c], ebx
jne 0x64ecc7
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0xe4], 0x7c
mov eax, dword [eax + 0x6c]
push ebx
lea edx, [ebp - 0xe4]
mov ecx, dword [eax]
push ebx
push edx
push ebx
push eax
call dword [ecx + 0x64]
mov esi, 0x8876021c
cmp eax, esi
jne 0x64ed04
mov eax, dword [edi]
push ebx
lea edx, [ebp - 0xe4]
push ebx
mov eax, dword [eax + 0x6c]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x64]
jmp 0x64ece9
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0xc0]
mov edi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
push 8
mov dword [ebp - 0x48], eax
pop eax
test ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
je 0x64ed64
test cl, 1
jne 0x64ed59
inc dword [ebp - 0x2c]
shr ecx, 1
jne 0x64ed4d
test ecx, ecx
je 0x64ed64
dec dword [ebp - 0x28]
shr ecx, 1
jne 0x64ed5d
test edi, edi
mov ecx, edi
je 0x64ed81
test cl, 1
jne 0x64ed76
inc dword [ebp - 0x10]
shr ecx, 1
jne 0x64ed6a
test ecx, ecx
je 0x64ed81
dec dword [ebp - 0x14]
shr ecx, 1
jne 0x64ed7a
test edx, edx
mov ecx, edx
je 0x64ed9e
test cl, 1
jne 0x64ed93
inc dword [ebp - 0x18]
shr ecx, 1
jne 0x64ed87
test ecx, ecx
je 0x64ed9e
dec dword [ebp - 0x24]
shr ecx, 1
jne 0x64ed97
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x64edbc
test cl, 1
jne 0x64edb1
inc dword [ebp - 0x20]
shr ecx, 1
jne 0x64eda5
test ecx, ecx
je 0x64edbc
dec dword [ebp - 0x1c]
shr ecx, 1
jne 0x64edb5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x34]
test ecx, ecx
jbe 0x64eddb
cmp ecx, 2
jbe 0x64ee37
cmp ecx, eax
je 0x64ee37
cmp ecx, 0x10
je 0x64ee37
cmp ecx, 0x20
je 0x64ee37
call fcn.0067f5ad
sub esp, 0x18
mov ecx, esp
push 0x4c2
call fcn.0066b1cd
sub esp, 0x18
mov eax, esp
push str.C:ProjectsCOMMONL_RasterizerD3D7_Texture.cpp
push eax
call fcn.0066b0d0
pop ecx
lea eax, [ebp - 0x68]
pop ecx
push str.Invalid_Texture_Format
push eax
call fcn.0066b0d0
pop ecx
pop ecx
mov ecx, eax
call fcn.0066c552
push eax
call fcn.0067f4fe
add esp, 0x34
lea ecx, [ebp - 0x68]
call fcn.0066b24c
call sub.kernel32.dll_IsDebuggerPresent
test eax, eax
je 0x64ef4a
int3
and dword [ebp - 8], 0
cmp dword [ebp - 0xdc], 0
jbe 0x64ef30
mov eax, dword [ebp - 0xd8]
and dword [ebp - 4], 0
test eax, eax
jbe 0x64ef15
movzx ecx, byte [ebp - 0x14]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], esi
movzx ecx, byte [ebp - 0x24]
movzx ebx, byte [ebp - 0x28]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0xc], esi
movzx ecx, byte [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
imul eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add eax, dword [ebp - 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x70]
mov edx, dword [ecx + eax*4]
mov cl, bl
mov edi, edx
mov eax, edx
shr edi, 0x18
shr edi, cl
mov ecx, dword [ebp - 0x2c]
shr eax, 0x10
movzx esi, al
shl edi, cl
mov cl, byte [ebp - 0x4c]
mov eax, edx
shr esi, cl
mov ecx, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
shl esi, cl
mov cl, byte [ebp - 0x50]
and edi, dword [ebp - 0x3c]
shr eax, cl
mov ecx, dword [ebp - 0x18]
movzx edx, dl
shl eax, cl
mov cl, byte [ebp - 0x40]
and esi, dword [ebp - 0x44]
shr edx, cl
mov ecx, dword [ebp - 0x20]
and eax, dword [ebp - 0x38]
shl edx, cl
and edx, dword [ebp - 0x48]
cmp dword [ebp - 0x90], 0x20
jne 0x64eeec
add edx, eax
mov eax, dword [ebp - 0xc]
add edx, esi
add edx, edi
mov dword [eax], edx
jmp 0x64eef8
add edx, eax
mov eax, dword [ebp - 0x30]
add edx, esi
add edx, edi
mov word [eax], dx
inc dword [ebp - 4]
mov eax, dword [ebp - 0xd8]
add dword [ebp - 0xc], 4
add dword [ebp - 0x30], 2
cmp dword [ebp - 4], eax
jb 0x64ee79
mov esi, dword [ebp - 0x34]
add esi, dword [ebp - 0xd4]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x34], esi
jb 0x64ee4e
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
xor eax, eax
jmp 0x64ecc2
push 1
call fcn.006a16bc
call fcn.0064ef5b
jmp 0x64ef6d
push 0x64ef79
call fcn.006a15f3
pop ecx
ret