Function at 0x660cc900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x78]
push ebx
sub esp, 0xac
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0
mov eax, dword [ebx + 0x3c]
mov byte [ebp - 0x70], 0
add eax, 0x13
mov dword [esp], eax
call fcn.661affe0
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x74]
sub esp, 4
cmp eax, 0x12
jbe 0x660ccf2b
mov dword [esp + 4], 0x13
lea ecx, [ebp - 0x78]
mov dword [esp], str.._data_mods__cache_
call fcn.661b0180
mov eax, dword [ebx + 0x3c]
sub esp, 8
lea ecx, [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call fcn.661b0180
sub esp, 8
lea eax, [ebp - 0x78]
mov dword [esp], eax
call fcn.660d7610
mov byte [ebp - 0x89], al
test al, al
jne 0x660cc9d0
mov dword [esp + 4], str.Couldnt_create_texture_cache_folder
mov dword [esp], 0x661e005d
call dword [0x661dc034]
mov eax, dword [ebp - 0x78]
lea edi, [ebp - 0x70]
cmp eax, edi
je 0x660cc9bd
mov edi, dword [ebp - 0x70]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
movzx eax, byte [ebp - 0x89]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x3c]
mov byte [ebp - 0x40], 0
add eax, 0x13
mov dword [esp], eax
call fcn.661affe0
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x44]
sub esp, 4
cmp eax, 0x12
jbe 0x660ccf37
mov dword [esp + 4], 0x13
lea ecx, [ebp - 0x48]
mov dword [esp], str.._data_mods__cache_
call fcn.661b0180
mov eax, dword [ebx + 0x3c]
sub esp, 8
lea ecx, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call fcn.661b0180
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x44]
sub esp, 8
mov dword [ebp - 0x30], eax
mov eax, edi
add eax, esi
setne dl
test edi, edi
sete al
test dl, al
jne 0x660ccf4f
mov dword [ebp - 0x60], esi
cmp esi, 0xf
ja 0x660ccd80
cmp esi, 1
jne 0x660ccd38
movzx eax, byte [edi]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov byte [eax + esi], 0
cmp dword [ebp - 0x2c], 0x3fffffff
je 0x660ccf43
mov dword [esp + 4], 1
lea ecx, [ebp - 0x30]
mov dword [esp], 0x661e0067
call fcn.661b0180
mov eax, dword [ebx + 0x1c]
sub esp, 8
lea ecx, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.661b0180
lea esi, [ebp - 0x58]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x60], esi
mov ecx, dword [eax]
cmp ecx, edx
je 0x660ccdf0
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x5c], ecx
mov dword [eax], edx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x660ccb07
mov edi, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x40]
cmp eax, edi
je 0x660ccb23
mov esi, dword [ebp - 0x40]
mov dword [esp], eax
lea edx, [esi + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.660e5720
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.660e5720
mov ecx, dword [ebp - 0x90]
or ecx, edi
je 0x660ccb89
mov ecx, dword [0x662381a0]
mov esi, dword [0x662381a4]
cmp ecx, eax
mov dword [ebp - 0x94], esi
mov esi, ecx
mov ecx, dword [ebp - 0x94]
sbb ecx, edx
mov ecx, eax
mov eax, edx
cmovae eax, dword [ebp - 0x94]
cmovae ecx, esi
mov esi, dword [ebp - 0x90]
cmp edi, ecx
sbb esi, eax
jae 0x660ccd10
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x80]
mov dword [esp + 4], eax
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.660f7eb0
mov esi, eax
test eax, eax
jne 0x660ccdc0
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x90], eax
mov edi, eax
mov eax, dword [ebp - 0x80]
cmp edi, eax
jne 0x660ccd48
cmp edx, ecx
jne 0x660ccd48
mov ecx, edi
mov eax, dword [ebx + 0x30]
imul ecx, edx
lea esi, [ecx*4]
test eax, eax
je 0x660cceb8
cmp eax, 1
jne 0x660ccc96
mov esi, ecx
mov dword [ebp - 0x94], edx
and esi, 0x3fffffff
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x94]
mov dword [esp + 0x10], 1
mov edi, eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.660ff9f0
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.661273a8
mov dword [ebp - 0x84], edi
test esi, esi
je 0x660ccf0a
rol word [edi], 8
mov eax, 2
cmp esi, 2
jbe 0x660ccc96
mov edi, ebx
nop
mov ecx, dword [ebp - 0x84]
lea edx, [ecx + eax]
movzx ecx, byte [ecx + eax + 1]
movzx ebx, byte [edx]
mov byte [edx], cl
mov edx, dword [ebp - 0x84]
mov byte [edx + eax + 1], bl
add eax, 2
cmp esi, eax
ja 0x660ccc70
mov ebx, edi
cmp dword [ebx + 0x34], 1
mov dword [ebp - 0x90], esi
je 0x660cce70
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x661e00d5
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x660ccef0
cmp dword [ebx + 0x34], 1
je 0x660cce10
mov eax, dword [ebp - 0x90]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.661273a8
lea esi, [esi]
nop
mov eax, dword [ebp - 0x60]
lea ebx, [ebp - 0x58]
cmp eax, ebx
je 0x660cc9a1
mov ebx, dword [ebp - 0x58]
mov dword [esp], eax
lea edx, [ebx + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
jmp 0x660cc9a1
lea eax, [ebp - 0x28]
test esi, esi
je 0x660cca76
jmp 0x660ccda2
mov edi, dword [ebp - 0x90]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Loaded_png___dx_d__doesnt_match_texturelist.xml___dx_d___ignoring
mov dword [esp], 0x661e005d
call dword [0x661dc034]
mov byte [ebp - 0x89], 0
jmp 0x660ccd10
lea eax, [ebp - 0x60]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.661b02e0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
sub esp, 8
mov dword [ebp - 0x28], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x30]
jmp 0x660cca76
mov dword [esp], eax
mov ebx, dword [0x661dc034]
call fcn.660fa710
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.cant_load_png__u:__s_n
mov dword [esp], 0x661e005d
call ebx
jmp 0x660ccd73
mov ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x50], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x4c], ecx
jmp 0x660ccad8
mov dword [esp], esi
call fcn.66119cd0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.66119cd0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
jmp 0x660ccccd
lea eax, [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.660cb1f0
mov edi, eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.661273a8
test edi, edi
je 0x660ccf11
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x90], eax
jmp 0x660ccca6
mov edi, ebx
test esi, esi
je 0x660ccf0a
nop
mov ecx, dword [ebp - 0x84]
lea edx, [ecx + eax]
movzx ecx, byte [ecx + eax + 2]
movzx ebx, byte [edx]
mov byte [edx], cl
mov edx, dword [ebp - 0x84]
mov byte [edx + eax + 2], bl
add eax, 4
cmp esi, eax
ja 0x660ccec0
mov ebx, edi
jmp 0x660ccc96
mov dword [esp + 4], str.cant_open_cache_for_writing
mov dword [esp], 0x661e005d
call dword [0x661dc034]
jmp 0x660ccd73
xor esi, esi
jmp 0x660ccc96
mov dword [esp + 4], str.Couldnt_compress
mov dword [esp], 0x661e005d
call dword [0x661dc034]
jmp 0x660ccd73
mov dword [esp], 0x661e000e
call fcn.661d33a0
mov dword [esp], 0x661e000e
call fcn.661d33a0
mov dword [esp], 0x661e000e
call fcn.661d33a0
mov dword [esp], 0x661dffe4
call fcn.661d32b0
mov ebx, eax
jmp 0x661cfca8
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x40]
cmp edx, eax
je 0x661cfce2
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
jmp 0x661cfce2
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
cmp edx, eax
je 0x661cfcfe
mov eax, dword [ebp - 0x70]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
mov dword [esp], ebx
call fcn.66116c90
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x661cfd22
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x40]
cmp edx, eax
je 0x661cfce2
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.661cddb0
jmp 0x661cfce2