Function at 0x4f1ca0
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 0x4f1cde
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.00529b40
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0xa
call fcn.00526990
add esp, 8
jmp 0x4f1d16
mov eax, dword [ebp + 0xc]
push eax
call fcn.0048cc90
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f1cfd
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x4f1d16
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048b8e0
add esp, 0xc
jmp 0x4f1ed2
cmp dword [ebp + 0x10], 0
jle 0x4f1ed2
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 0x4f1d46
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x10]
jge 0x4f1e17
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.00528dd0
add esp, 4
test eax, eax
je 0x4f1e12
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00528ed0
add esp, 4
test eax, eax
je 0x4f1de5
cmp dword [ebp - 0x18], 0
je 0x4f1d95
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x4f1e17
cmp dword [ebp - 0x14], 0
je 0x4f1dda
mov edx, dword [ebp - 0xc]
add edx, 1
cmp edx, dword [ebp + 0x10]
jge 0x4f1db5
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
mov dword [ebp - 0x20], ecx
jmp 0x4f1dbc
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00528e50
add esp, 4
test eax, eax
je 0x4f1dda
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x4f1e17
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4f1e12
cmp dword [ebp - 0x14], 0
je 0x4f1e09
cmp dword [ebp - 0xc], 1
jne 0x4f1e01
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4f1e09
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4f1e17
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4f1d3d
cmp dword [ebp + 8], 0
je 0x4f1e53
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x28]
jne 0x4f1e2d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x4f1e51
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.00529b40
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push 0xa
call fcn.00526990
add esp, 8
jmp 0x4f1ebb
cmp dword [ebp - 8], 1
jle 0x4f1ea0
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.0048cc90
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f1e93
mov eax, dword [ebp + 0xc]
push eax
push 0x63c268
call fcn.0048b6c0
add esp, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
jmp 0x4f1ea7
mov dword [ebp - 0x10], 0x6605cd
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048b8e0
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 0x4f1d16
mov esp, ebp
pop ebp
ret