Function at 0x4f1980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x4f19be
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00529670
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0xa
call fcn.005264c0
add esp, 8
jmp 0x4f19f6
mov eax, dword [ebp + 0xc]
push eax
call fcn.0048ca40
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f19dd
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x4f19f6
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048b690
add esp, 0xc
jmp 0x4f1bb2
cmp dword [ebp + 0x10], 0
jle 0x4f1bb2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x4f1a26
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x10]
jge 0x4f1af7
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00528900
add esp, 4
test eax, eax
je 0x4f1af2
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00528a00
add esp, 4
test eax, eax
je 0x4f1ac5
cmp dword [ebp - 0x18], 0
je 0x4f1a75
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x4f1af7
cmp dword [ebp - 0x14], 0
je 0x4f1aba
mov edx, dword [ebp - 0xc]
add edx, 1
cmp edx, dword [ebp + 0x10]
jge 0x4f1a95
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
mov dword [ebp - 0x20], ecx
jmp 0x4f1a9c
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00528980
add esp, 4
test eax, eax
je 0x4f1aba
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x4f1af7
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4f1af2
cmp dword [ebp - 0x14], 0
je 0x4f1ae9
cmp dword [ebp - 0xc], 1
jne 0x4f1ae1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4f1ae9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4f1af7
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4f1a1d
cmp dword [ebp + 8], 0
je 0x4f1b33
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x28]
jne 0x4f1b0d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x4f1b31
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00529670
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push 0xa
call fcn.005264c0
add esp, 8
jmp 0x4f1b9b
cmp dword [ebp - 8], 1
jle 0x4f1b80
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048ca40
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f1b73
mov eax, dword [ebp + 0xc]
push eax
push 0x637e34
call fcn.0048b470
add esp, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
jmp 0x4f1b87
mov dword [ebp - 0x10], 0x65c0c5
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048b690
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
jmp 0x4f19f6
mov esp, ebp
pop ebp
ret