Function at 0x40e680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x452308]
cmp word [eax + 0x32e], 0x63
push edi
mov edi, ecx
je 0x40eb29
cmp byte [0x453be6], 0
jne 0x40eb29
push esi
push 0x3f
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.0042cab0
mov edx, dword [edi + 0x14ec]
push edx
lea eax, [esp + 0x28]
push str.codeSav_02d.t1
push eax
call fcn.0042e7a3
lea ecx, [esp + 0x30]
push 0x444a54
push ecx
call fcn.0042d66f
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40eb28
inc dword [edi + 0x14ec]
cmp dword [edi + 0x14ec], 0x64
jl 0x40e710
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.0042ef9d
lea ebp, [edi + 0x70]
add esp, 0x10
mov ecx, ebp
call fcn.0042bfc0
push esi
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call fcn.0042ef9d
mov ecx, dword [0x452318]
mov edx, dword [ecx + 0x622f8]
push esi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], edx
call fcn.0042ef9d
mov ecx, dword [0x452308]
mov edx, dword [ecx + 0x5a4]
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
mov dword [esp + 0x44], edx
call fcn.0042ef9d
add esp, 0x30
mov ecx, ebp
call fcn.0042bfd0
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x24], eax
call fcn.0042ef9d
push esi
push 1
push 0x14
push 0x4531e8
call fcn.0042ef9d
push esi
push 1
push 0x14
push 0x452860
call fcn.0042ef9d
mov eax, dword [0x452308]
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.0042ef9d
mov eax, dword [0x452308]
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.0042ef9d
mov ecx, dword [0x452308]
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.0042ef9d
push esi
push 1
push 4
push 0x455798
call fcn.0042ef9d
push esi
push 1
push 4
push 0x455790
call fcn.0042ef9d
add esp, 0x40
push esi
push 1
push 4
push 0x455794
call fcn.0042ef9d
mov ecx, dword [edi + 0x1c]
mov edx, dword [0x4508b8]
add esp, 0x10
mov dword [esp + 0xc], edx
pop ebp
test ecx, ecx
jle 0x40e8b9
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.0042ef9d
mov ecx, dword [edi + 0x28]
mov edx, dword [0x4508bc]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e902
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.0042ef9d
mov ecx, dword [edi + 0x34]
mov edx, dword [0x4508c0]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e94b
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.0042ef9d
mov ecx, dword [edi + 0x40]
mov edx, dword [0x4508c4]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e994
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.0042ef9d
mov ecx, dword [edi + 0x4c]
mov edx, dword [0x4508c8]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40e9dd
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.0042ef9d
mov ecx, dword [edi + 0x58]
mov edx, dword [0x4508d4]
add esp, 0x10
mov dword [esp + 8], edx
test ecx, ecx
jle 0x40ea26
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.0042ef9d
mov edx, dword [0x4508cc]
add esp, 0x10
cmp dword [edi + 0x1430], 0
mov dword [esp + 8], edx
jle 0x40ea74
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.0042ef9d
mov eax, dword [0x4508d8]
add esp, 0x10
cmp dword [edi + 0x1440], 0
mov dword [esp + 8], eax
jle 0x40eac1
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.0042ef9d
mov ax, word [0x4508a0]
add esp, 0x10
mov byte [esp + 0xf], 0x59
cmp ax, 1
je 0x40eafb
cmp ax, 2
je 0x40eafb
cmp word [0x4557b0], 0
jle 0x40eb00
mov byte [esp + 0xf], 0x62
jmp 0x40eb00
mov byte [esp + 0xf], 0x63
push esi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.0042ef9d
push esi
call fcn.0042d272
add esp, 0x14
cmp byte [0x45284d], 0
sete dl
mov byte [0x45284d], dl
pop esi
mov ecx, dword [esp + 0x54]
pop edi
xor ecx, esp
call fcn.0042ca93
add esp, 0x54
ret