Function at 0x40e660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x451c10]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x453308]
cmp word [eax + 0x32e], 0x63
push edi
mov edi, ecx
je 0x40eb09
cmp byte [0x454be6], 0
jne 0x40eb09
push esi
push 0x3f
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.0042cf10
mov edx, dword [edi + 0x14ec]
push edx
lea eax, [esp + 0x28]
push str.codeSav_02d.t1
push eax
call fcn.0042ec03
lea ecx, [esp + 0x30]
push 0x445a54
push ecx
call fcn.0042dacf
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40eb08
inc dword [edi + 0x14ec]
cmp dword [edi + 0x14ec], 0x64
jl 0x40e6f0
mov dword [edi + 0x14ec], 0
push ebp
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
mov dword [esp + 0x28], 0x1ef
call fcn.0042f3fd
lea ebp, [edi + 0x70]
add esp, 0x10
mov ecx, ebp
call fcn.0042c0c0
push esi
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.0042f3fd
mov ecx, dword [0x453318]
mov edx, dword [ecx + 0x622f8]
push esi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], edx
call fcn.0042f3fd
mov ecx, dword [0x453308]
mov edx, dword [ecx + 0x5a4]
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
mov dword [esp + 0x44], edx
call fcn.0042f3fd
add esp, 0x30
mov ecx, ebp
call fcn.0042c0d0
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x24], eax
call fcn.0042f3fd
push esi
push 1
push 0x14
push 0x4541e8
call fcn.0042f3fd
push esi
push 1
push 0x14
push 0x453860
call fcn.0042f3fd
mov eax, dword [0x453308]
mov edx, dword [eax + 0x588]
imul edx, edx, 0x186a0
add edx, dword [eax + 0x364]
push esi
push 1
lea eax, [esp + 0x44]
push 4
push eax
mov dword [esp + 0x4c], edx
call fcn.0042f3fd
mov eax, dword [0x453308]
mov ecx, dword [eax + 0x584]
imul ecx, ecx, 0x64
add ecx, dword [eax + 0x36c]
add esp, 0x40
push esi
push 1
lea edx, [esp + 0x14]
push 4
push edx
mov dword [esp + 0x1c], ecx
call fcn.0042f3fd
mov ecx, dword [0x453308]
mov edx, dword [ecx + 0x39c]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [ecx + 0x368]
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
call fcn.0042f3fd
push esi
push 1
push 4
push 0x456798
call fcn.0042f3fd
push esi
push 1
push 4
push 0x456790
call fcn.0042f3fd
add esp, 0x40
push esi
push 1
push 4
push 0x456794
call fcn.0042f3fd
mov ecx, dword [edi + 0x1c]
mov edx, dword [0x4518b8]
add esp, 0x10
mov dword [esp + 0xc], edx
pop ebp
test ecx, ecx
jle 0x40e899
mov edx, dword [edi + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x24]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov ecx, dword [edi + 0x28]
mov edx, dword [0x4518bc]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e8e2
mov edx, dword [edi + 0x2c]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x30]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov ecx, dword [edi + 0x34]
mov edx, dword [0x4518c0]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e92b
mov edx, dword [edi + 0x38]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x3c]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov ecx, dword [edi + 0x40]
mov edx, dword [0x4518c4]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e974
mov edx, dword [edi + 0x44]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x48]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov ecx, dword [edi + 0x4c]
mov edx, dword [0x4518c8]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e9bd
mov edx, dword [edi + 0x50]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x54]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov ecx, dword [edi + 0x58]
mov edx, dword [0x4518d4]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40ea06
mov edx, dword [edi + 0x5c]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
add eax, dword [edi + 0x60]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x64
add dword [esp + 8], eax
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0042f3fd
mov edx, dword [0x4518cc]
add esp, 0x10
cmp dword [edi + 0x1430], 0
mov dword [esp + 8], edx
jle 0x40ea54
mov ecx, dword [edi + 0x1434]
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [edi + 0x143c]
imul ecx, ecx, 0x2710
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esp + 8], eax
push esi
push 1
lea edx, [esp + 0x10]
push 4
push edx
call fcn.0042f3fd
mov eax, dword [0x4518d8]
add esp, 0x10
cmp dword [edi + 0x1440], 0
mov dword [esp + 8], eax
jle 0x40eaa1
mov ecx, dword [edi + 0x1444]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [edi + 0x144c]
imul edx, edx, 0x2710
add ecx, edx
mov dword [esp + 8], ecx
push esi
push 1
lea eax, [esp + 0x10]
push 4
push eax
call fcn.0042f3fd
mov ax, word [0x4518a0]
add esp, 0x10
mov byte [esp + 0xf], 0x59
cmp ax, 1
je 0x40eadb
cmp ax, 2
je 0x40eadb
cmp word [0x4567b0], 0
jle 0x40eae0
mov byte [esp + 0xf], 0x62
jmp 0x40eae0
mov byte [esp + 0xf], 0x63
push esi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.0042f3fd
push esi
call fcn.0042d6d2
add esp, 0x14
cmp byte [0x45384d], 0
sete dl
mov byte [0x45384d], dl
pop esi
mov ecx, dword [esp + 0x54]
pop edi
xor ecx, esp
call fcn.0042cefe
add esp, 0x54
ret