Function at 0x1008ea40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199168
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x1c
mov dword [ebp - 0x88], eax
mov edx, esp
lea ecx, [edi + 0x24]
push ecx
mov ecx, edx
call fcn.10046cb0
lea eax, [ebp - 0x5c]
push eax
call fcn.10066c50
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
je 0x1008edab
cmp dword [ebp - 0x5c], 0
je 0x1008edab
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x1008edab
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push 8
movups xmmword [ebp - 0xa4], xmm0
call fcn.1013ca30
lea ecx, [ebp - 0xa8]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0xa8], eax
mov ax, word [0x101d9a08]
mov word [ebp - 0xa4], ax
mov al, byte [0x101d9a0a]
mov byte [ebp - 0xa2], al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x94], 3
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa1], 0
cmp eax, 3
jb 0x1008eb72
xor ecx, ecx
mov dword [ebp - 0x70], ecx
test eax, eax
je 0x1008eb72
mov edi, dword [ebp - 0x6c]
xor esi, esi
mov al, 1
add edi, ecx
mov cl, byte [edi + esi]
xor edx, edx
cmp cl, byte [ebp + esi - 0xa4]
movzx eax, al
cmove edx, eax
inc esi
mov al, dl
cmp esi, 3
jb 0x1008eb41
mov edi, dword [ebp - 0x64]
test al, al
jne 0x1008ec2c
mov ecx, dword [ebp - 0x70]
inc ecx
mov dword [ebp - 0x70], ecx
cmp ecx, dword [ebp - 0x38]
jb 0x1008eb38
lea ecx, [ebp - 0xa8]
call fcn.100477d0
xor esi, esi
mov eax, dword [ebp - 0xa8]
push 8
push eax
mov dword [ebp - 0xa8], 0
call fcn.1013c8d0
add esi, dword [ebp - 0x6c]
add esp, 8
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x74]
add eax, 0x14
movd ecx, xmm0
add esi, eax
mov dword [ebp - 0x74], eax
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0xb0], esi
cmp cl, 0x4e
jne 0x1008ebe4
mov eax, ecx
shr eax, 8
cmp al, 0x54
jne 0x1008ebe4
mov eax, ecx
shr eax, 0x10
cmp al, 0x46
jne 0x1008ebe4
shr ecx, 0x18
cmp cl, 3
je 0x1008ebfd
cmp dword [edi + 0x3c], 0xf
lea eax, [edi + 0x28]
jbe 0x1008ebef
mov eax, dword [eax]
push eax
push str.N3Texture_Warning___Old_format_DXT_file___s__n
call fcn.10089a80
add esp, 8
mov edi, dword [ebp - 0x94]
mov ecx, edi
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x78], ecx
cmp ecx, 0x31545844
jne 0x1008ec3f
mov eax, dword [0x1027e7a8]
and eax, 1
mov dword [ebp - 0x68], eax
mov eax, 0x19
cmove ecx, eax
jmp 0x1008ecc1
lea ecx, [ebp - 0xa8]
call fcn.100477d0
mov esi, dword [ebp - 0x70]
jmp 0x1008eb7f
cmp ecx, 0x32545844
jne 0x1008ec61
test dword [0x1027e7a8], 2
mov edx, 0x1a
setne al
cmove ecx, edx
mov byte [ebp - 0x68], al
jmp 0x1008ecc1
cmp ecx, 0x33545844
jne 0x1008ec83
test dword [0x1027e7a8], 4
mov edx, 0x1a
setne al
cmove ecx, edx
mov byte [ebp - 0x68], al
jmp 0x1008ecc1
cmp ecx, 0x34545844
jne 0x1008eca5
test dword [0x1027e7a8], 8
mov edx, 0x1a
setne al
cmove ecx, edx
mov byte [ebp - 0x68], al
jmp 0x1008ecc1
cmp ecx, 0x35545844
jne 0x1008ecc4
test byte [0x1027e7a8], 0x10
je 0x1008ecbc
mov byte [ebp - 0x68], 1
jmp 0x1008ecc4
mov ecx, 0x1a
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x84], eax
cmp ecx, edi
je 0x1008ed01
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x84]
cdq
sub eax, edx
mov edx, dword [ebp - 0x60]
sar eax, 1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x70], eax
dec eax
cmp eax, 1
ja 0x1008ed62
cmp dword [ebp - 0xac], 0x10
jl 0x1008ed62
cmp dword [ebp - 0x84], 0x10
jl 0x1008ed62
mov eax, dword [ebp - 0x70]
test eax, eax
jle 0x1008ed70
mov edi, dword [ebp - 0x60]
mov esi, eax
mov ecx, dword [ebp - 0x6c]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
mov ecx, eax
sar ecx, 1
sub esi, 1
jne 0x1008ed31
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x94]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x64]
jmp 0x1008ed70
mov dword [ecx + 0x44], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x8c]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
push edx
call fcn.1008e350
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x44], ecx
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x1008ede7
cmp dword [eax + 0x3c], 0xf
lea ecx, [eax + 0x28]
jbe 0x1008ed9d
mov ecx, dword [ecx]
push ecx
push str.N3Texture_error___Cant_create_texture___s__n
call fcn.10089a80
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.100477d0
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.1013c8d0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov dword [ebp - 0x70], eax
cmp edi, 0x31545844
je 0x1008ef89
cmp edi, 0x32545844
je 0x1008ef89
cmp edi, 0x33545844
je 0x1008ef89
cmp edi, 0x34545844
je 0x1008ef89
cmp edi, 0x35545844
je 0x1008ef89
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], 0
cmp eax, 0x19
je 0x1008ee7f
cmp eax, 0x1a
je 0x1008ee7f
cmp eax, 0x14
jne 0x1008ee4e
mov dword [ebp - 0x68], 3
jmp 0x1008ee86
cmp eax, 0x15
je 0x1008ee76
cmp eax, 0x16
je 0x1008ee76
push 0x194
push 0x101d9948
push str.Not_supported_texture_format
push str.ERROR____s_n_s:__d_n_n
call fcn.10089a80
add esp, 0x10
jmp 0x1008ee86
mov dword [ebp - 0x68], 4
jmp 0x1008ee86
mov dword [ebp - 0x68], 2
cmp dword [ebp - 0x70], 1
mov edi, dword [ebp - 0x64]
jle 0x1008ef10
xor edx, edx
mov dword [ebp - 0x60], edx
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x80]
push 0
push 0
push edx
push dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
xor edi, edi
cmp dword [ebp - 0x14], edi
jle 0x1008eef0
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x18]
push eax
mov eax, edi
imul eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x7c]
push eax
push esi
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esi, dword [ebp - 0x74]
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x1008eec4
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x60]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x60]
inc edx
mov dword [ebp - 0x60], edx
cmp edx, dword [ebp - 0x70]
jl 0x1008ee98
jmp 0x1008f17e
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x30]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x80]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
xor ecx, ecx
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x14], ecx
jle 0x1008ef79
mov edi, dword [ebp - 0x88]
imul ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x18]
add ecx, dword [ebp - 0x7c]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x84]
add esi, dword [ebp - 0x74]
inc ecx
mov dword [ebp - 0x84], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x1008ef45
mov edi, dword [ebp - 0x64]
mov eax, dword [edi + 0x5c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp 0x1008f17e
cmp byte [ebp - 0x68], 1
jne 0x1008f0f1
cmp eax, 1
jle 0x1008f053
mov edi, dword [ebp - 0x64]
xor edx, edx
mov dword [ebp - 0x6c], edx
mov eax, dword [edi + 0x5c]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edi, dword [ebp - 0x64]
lea edx, [ebp - 0x80]
push 0
push 0
push edx
mov eax, dword [edi + 0x5c]
push dword [ebp - 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x94]
xor edi, edi
cmp eax, 0x33545844
jg 0x1008f002
je 0x1008eff9
cmp eax, 0x31545844
je 0x1008efee
cmp eax, 0x32545844
je 0x1008f1a2
jmp 0x1008f018
mov edi, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
shr edi, 1
jmp 0x1008f018
mov edi, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
jmp 0x1008f018
cmp eax, 0x34545844
je 0x1008f1de
cmp eax, 0x35545844
je 0x1008f1c0
push edi
push esi
push dword [ebp - 0x7c]
call fcn.1013f190
mov eax, dword [ebp - 0x74]
add esp, 0xc
add eax, edi
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
add esi, eax
push dword [ebp - 0x6c]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x6c]
inc edx
mov dword [ebp - 0x6c], edx
cmp edx, dword [ebp - 0x70]
jl 0x1008efa4
jmp 0x1008f17e
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, dword [eax + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x80]
push 0
push 0
push edx
mov eax, dword [ecx + 0x5c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor eax, eax
cmp edi, 0x33545844
jg 0x1008f0b1
je 0x1008f0a8
cmp edi, 0x31545844
je 0x1008f09d
cmp edi, 0x32545844
je 0x1008f1a2
jmp 0x1008f0c9
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
shr eax, 1
jmp 0x1008f0c9
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
jmp 0x1008f0c9
cmp edi, 0x34545844
je 0x1008f1de
cmp edi, 0x35545844
je 0x1008f1c0
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [ebp - 0x7c]
push esi
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x64]
push 0
mov eax, dword [ecx + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp 0x1008f17e
cmp eax, 1
jle 0x1008f17e
mov edi, dword [ebp - 0x64]
xor edx, edx
mov dword [ebp - 0x60], edx
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x80]
push 0
push 0
push edx
push dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x8c], eax
test eax, eax
jle 0x1008f163
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
mov eax, dword [ebp - 0x80]
imul eax, edi
add eax, dword [ebp - 0x7c]
push eax
push esi
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esi, dword [ebp - 0x74]
inc edi
cmp edi, dword [ebp - 0x8c]
jl 0x1008f136
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x60]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x60]
inc edx
mov dword [ebp - 0x60], edx
cmp edx, dword [ebp - 0x70]
jl 0x1008f102
lea ecx, [ebp - 0x58]
call fcn.100477d0
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.1013c8d0
add esp, 8
mov al, 1
jmp 0x1008edca
push str.ERROR:_D3DFMT_DXT2_n
call fcn.10089a80
push str.pause
call fcn.1015d771
add esp, 8
push 0xffffffffffffffff
call fcn.1015c310
push str.ERROR:_D3DFMT_DXT5_n
call fcn.10089a80
push str.pause
call fcn.1015d771
add esp, 8
push 0xffffffffffffffff
call fcn.1015c310
push str.ERROR:_D3DFMT_DXT4_n
call fcn.10089a80
push str.pause
call fcn.1015d771
add esp, 8
push 0xffffffffffffffff
call fcn.1015c310
int3