Function at 0x4d9600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push 0x717e54
mov eax, dword [ebp + 8]
push eax
call fcn.00690360
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d9639
mov ecx, dword [ebp + 8]
push ecx
push str.Could_not_open_file__s_n
call fcn.004017c0
add esp, 8
jmp 0x4d992a
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 1
jmp 0x4d9659
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [0x77044c]
cmp dword [ebp - 8], eax
jge 0x4d9733
imul ecx, dword [ebp - 8], 0x70
add ecx, 0x12b8818
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 3]
test eax, eax
je 0x4d972e
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 2
jne 0x4d9725
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
cmp ecx, 2
jne 0x4d9725
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 2]
cmp eax, 2
jne 0x4d9725
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 4], 0
jne 0x4d9725
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 0x24], 0
jne 0x4d9725
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 0x44], 0
jne 0x4d9725
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 4], 0x10000
jne 0x4d9725
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax + 0x24], 0x10000
jne 0x4d9725
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 0x44], 0x10000
je 0x4d972e
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x4d9650
mov edx, dword [ebp - 0x10]
push edx
push 1
push 8
lea eax, [ebp - 0x18]
push eax
call fcn.006cf670
add esp, 0x10
cmp eax, 1
je 0x4d9756
jmp 0x4d990d
mov dword [ebp - 8], 1
jmp 0x4d9768
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, word [0x77044c]
cmp dword [ebp - 8], edx
jge 0x4d98ff
imul eax, dword [ebp - 8], 0x70
add eax, 0x12b8818
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 3]
test edx, edx
je 0x4d98fa
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 2
jne 0x4d9837
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
cmp eax, 2
jne 0x4d9837
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 2]
cmp edx, 2
jne 0x4d9837
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 4], 0
jne 0x4d9837
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x24], 0
jne 0x4d9837
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x44], 0
jne 0x4d9837
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax + 4], 0x10000
jne 0x4d9837
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 0x24], 0x10000
jne 0x4d9837
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x44], 0x10000
je 0x4d98fa
mov al, byte [ebp - 8]
mov byte [ebp - 0x88], al
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 0x87], dl
mov eax, dword [ebp - 4]
mov cl, byte [eax + 1]
mov byte [ebp - 0x86], cl
mov edx, dword [ebp - 4]
mov al, byte [edx + 2]
mov byte [ebp - 0x85], al
mov dword [ebp - 0xc], 0
jmp 0x4d9875
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 8
jge 0x4d98b3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebp + edx*4 - 0x84], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4 + 0x24]
mov dword [ebp + ecx*4 - 0x64], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x44]
mov dword [ebp + eax*4 - 0x44], ecx
jmp 0x4d986c
mov edx, dword [ebp - 4]
movss xmm0, dword [edx + 0x64]
movss dword [ebp - 0x24], xmm0
mov eax, dword [ebp - 4]
movss xmm0, dword [eax + 0x68]
movss dword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 4]
movss xmm0, dword [ecx + 0x6c]
movss dword [ebp - 0x1c], xmm0
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0x70
lea eax, [ebp - 0x88]
push eax
call fcn.006cf670
add esp, 0x10
cmp eax, 1
je 0x4d98fa
jmp 0x4d990d
jmp 0x4d975f
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0068fac0
add esp, 4
jmp 0x4d992a
mov edx, dword [ebp - 0x10]
push edx
call fcn.0068fac0
add esp, 4
mov eax, dword [ebp + 8]
push eax
push str.Error_saving_file__s_n
call fcn.004017c0
add esp, 8
mov esp, ebp
pop ebp
ret