Function at 0x10085600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101737d8
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x101cfdb0]
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 - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x1c
mov dword [ebp - 0xa4], eax
mov edx, esp
lea ecx, [edi + 0x24]
push ecx
mov ecx, edx
call fcn.10046370
lea eax, [ebp - 0x5c]
push eax
call fcn.100647e0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
je 0x100859fc
cmp dword [ebp - 0x5c], 0
je 0x100859fc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x100859fc
lea eax, [ebp - 0xa5]
mov dword [ebp - 0x6c], 0
push 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], eax
call fcn.10047940
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 1
push 3
push 0x101b39d0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
call fcn.10046d30
mov byte [ebp - 4], 0
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0x10
mov ecx, dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x9c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x8c]
cmp eax, ecx
ja 0x10085772
xor esi, esi
mov dword [ebp - 0x60], esi
test ecx, ecx
je 0x10085772
nop
xor esi, esi
mov ch, 1
test eax, eax
je 0x10085862
mov edi, dword [ebp - 0x60]
nop
mov edx, dword [ebp - 0x70]
lea eax, [esi + edi]
mov edi, dword [ebp - 0x7c]
mov cl, byte [eax + edx]
xor edx, edx
cmp cl, byte [edi + esi]
mov edi, dword [ebp - 0x60]
movzx eax, ch
cmove edx, eax
inc esi
mov ch, dl
cmp esi, dword [ebp - 0x8c]
jb 0x10085730
mov edi, dword [ebp - 0x68]
test ch, ch
jne 0x10085862
mov eax, dword [ebp - 0x60]
inc eax
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x8c]
jb 0x10085720
lea ecx, [ebp - 0xa0]
call fcn.100432e0
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x10085798
inc eax
push eax
push dword [ebp - 0x9c]
call fcn.100479d0
add esp, 8
xor esi, esi
mov eax, dword [ebp - 0xa0]
push 8
push eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
call fcn.100479d0
add esi, dword [ebp - 0x70]
add esp, 8
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x6c]
add eax, 0x14
movd ecx, xmm0
add esi, eax
mov dword [ebp - 0x6c], eax
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0xb8], esi
cmp cl, 0x4e
jne 0x1008581a
mov eax, ecx
shr eax, 8
cmp al, 0x54
jne 0x1008581a
mov eax, ecx
shr eax, 0x10
cmp al, 0x46
jne 0x1008581a
shr ecx, 0x18
cmp cl, 3
je 0x10085833
cmp dword [edi + 0x3c], 0x10
lea eax, [edi + 0x28]
jb 0x10085825
mov eax, dword [eax]
push eax
push str.N3Texture_Warning___Old_format_DXT_file___s__n
call fcn.10080f00
add esp, 8
mov edi, dword [ebp - 0x8c]
mov ecx, edi
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x78], ecx
cmp ecx, 0x31545844
jne 0x10085890
mov eax, dword [0x102578f0]
and eax, 1
mov dword [ebp - 0x60], eax
mov eax, 0x19
cmove ecx, eax
jmp 0x1008591b
lea ecx, [ebp - 0xa0]
call fcn.100432e0
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x10085888
inc eax
push eax
push dword [ebp - 0x9c]
call fcn.100479d0
add esp, 8
mov esi, dword [ebp - 0x60]
jmp 0x1008579a
cmp ecx, 0x32545844
jne 0x100858b5
mov eax, dword [0x102578f0]
mov edx, 0x1a
and eax, 2
cmove ecx, edx
test eax, 2
setne al
mov byte [ebp - 0x60], al
jmp 0x1008591b
cmp ecx, 0x33545844
jne 0x100858da
mov eax, dword [0x102578f0]
mov edx, 0x1a
and eax, 4
cmove ecx, edx
test eax, 4
setne al
mov byte [ebp - 0x60], al
jmp 0x1008591b
cmp ecx, 0x34545844
jne 0x100858ff
mov eax, dword [0x102578f0]
mov edx, 0x1a
and eax, 8
cmove ecx, edx
test eax, 8
setne al
mov byte [ebp - 0x60], al
jmp 0x1008591b
cmp ecx, 0x35545844
jne 0x1008591e
test byte [0x102578f0], 0x10
je 0x10085916
mov byte [ebp - 0x60], 1
jmp 0x1008591e
mov ecx, 0x1a
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], eax
cmp ecx, edi
je 0x10085955
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x7c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x64]
sar eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x70], eax
dec eax
cmp eax, 1
ja 0x100859b3
cmp dword [ebp - 0xb4], 0x10
jl 0x100859b3
cmp dword [ebp - 0x7c], 0x10
jl 0x100859b3
mov eax, dword [ebp - 0x70]
test eax, eax
jle 0x100859c1
mov edi, dword [ebp - 0x64]
mov esi, eax
mov ecx, dword [ebp - 0x74]
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 0x10085982
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x68]
jmp 0x100859c1
mov dword [ecx + 0x44], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0xac]
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push edx
call fcn.10084fa0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x44], ecx
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x10085a5f
cmp dword [eax + 0x3c], 0x10
lea ecx, [eax + 0x28]
jb 0x100859ee
mov ecx, dword [ecx]
push ecx
push str.N3Texture_error___Cant_create_texture___s__n
call fcn.10080f00
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.100432e0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10085a19
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
call fcn.100479d0
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.101163c0
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 0x10085c05
cmp edi, 0x32545844
je 0x10085c05
cmp edi, 0x33545844
je 0x10085c05
cmp edi, 0x34545844
je 0x10085c05
cmp edi, 0x35545844
je 0x10085c05
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], 0
cmp eax, 0x19
je 0x10085af7
cmp eax, 0x1a
je 0x10085af7
cmp eax, 0x14
jne 0x10085ac6
mov dword [ebp - 0x60], 3
jmp 0x10085afe
cmp eax, 0x15
je 0x10085aee
cmp eax, 0x16
je 0x10085aee
push 0x194
push 0x101b3910
push str.Not_supported_texture_format
push str.ERROR____s_n_s:__d_n_n
call fcn.10080f00
add esp, 0x10
jmp 0x10085afe
mov dword [ebp - 0x60], 4
jmp 0x10085afe
mov dword [ebp - 0x60], 2
cmp dword [ebp - 0x70], 1
mov edi, dword [ebp - 0x68]
jle 0x10085b8f
xor edx, edx
mov dword [ebp - 0x64], edx
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x84]
push 0
push 0
push edx
push dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
xor edi, edi
cmp dword [ebp - 0x14], edi
jle 0x10085b6f
nop
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x18]
push eax
mov eax, edi
imul eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x80]
push eax
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esi, dword [ebp - 0x6c]
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x10085b40
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x64]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x64]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, dword [ebp - 0x70]
jl 0x10085b10
jmp 0x10085e0f
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 - 0x84]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x14], ecx
jle 0x10085bf5
mov edi, dword [ebp - 0xa4]
imul ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x18]
add ecx, dword [ebp - 0x80]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x7c]
add esi, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x7c], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x10085bc4
mov edi, dword [ebp - 0x68]
mov eax, dword [edi + 0x5c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp 0x10085e0f
cmp byte [ebp - 0x60], 1
jne 0x10085d73
cmp eax, 1
jle 0x10085cd2
mov edi, dword [ebp - 0x68]
xor edx, edx
mov dword [ebp - 0x74], 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 - 0x68]
lea edx, [ebp - 0x84]
push 0
push 0
push edx
mov eax, dword [edi + 0x5c]
push dword [ebp - 0x74]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x8c]
xor edi, edi
cmp eax, 0x33545844
jg 0x10085c81
je 0x10085c78
cmp eax, 0x31545844
je 0x10085c6d
cmp eax, 0x32545844
je 0x10085e5a
jmp 0x10085c97
mov edi, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
shr edi, 1
jmp 0x10085c97
mov edi, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
jmp 0x10085c97
cmp eax, 0x34545844
je 0x10085e96
cmp eax, 0x35545844
je 0x10085e78
push edi
push esi
push dword [ebp - 0x80]
call fcn.10118c50
mov eax, dword [ebp - 0x6c]
add esp, 0xc
add eax, edi
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
add esi, eax
push dword [ebp - 0x74]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x74]
inc edx
mov dword [ebp - 0x74], edx
cmp edx, dword [ebp - 0x70]
jl 0x10085c20
jmp 0x10085e0f
mov eax, dword [ebp - 0x68]
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 - 0x68]
lea edx, [ebp - 0x84]
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 0x10085d33
je 0x10085d2a
cmp edi, 0x31545844
je 0x10085d1f
cmp edi, 0x32545844
je 0x10085e5a
jmp 0x10085d4b
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
shr eax, 1
jmp 0x10085d4b
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
jmp 0x10085d4b
cmp edi, 0x34545844
je 0x10085e96
cmp edi, 0x35545844
je 0x10085e78
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x68]
push 0
mov eax, dword [ecx + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp 0x10085e0f
cmp eax, 1
jle 0x10085e0f
mov edi, dword [ebp - 0x68]
xor edx, edx
mov dword [ebp - 0x64], edx
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x5c]
lea edx, [ebp - 0x84]
push 0
push 0
push edx
push dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0xac], eax
test eax, eax
jle 0x10085df0
nop dword [eax + eax]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
mov eax, dword [ebp - 0x84]
imul eax, edi
add eax, dword [ebp - 0x80]
push eax
push esi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esi, dword [ebp - 0x6c]
inc edi
cmp edi, dword [ebp - 0xac]
jl 0x10085dc0
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x64]
mov eax, dword [edi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x64]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, dword [ebp - 0x70]
jl 0x10085d84
lea ecx, [ebp - 0x58]
call fcn.100432e0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10085e2c
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
call fcn.100479d0
add esp, 8
mov al, 1
jmp 0x10085a42
push str.ERROR:_D3DFMT_DXT2_n
call fcn.10080f00
push str.pause
call fcn.101373e1
add esp, 8
push 0xffffffffffffffff
call fcn.10135f80
push str.ERROR:_D3DFMT_DXT5_n
call fcn.10080f00
push str.pause
call fcn.101373e1
add esp, 8
push 0xffffffffffffffff
call fcn.10135f80
push str.ERROR:_D3DFMT_DXT4_n
call fcn.10080f00
push str.pause
call fcn.101373e1
add esp, 8
push 0xffffffffffffffff
call fcn.10135f80
int3