Function at 0x4b5ccb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
jle 0x4b5d17
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
jne 0x4b5d17
mov dword [ebp - 0x18], 1
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
and eax, 0x200
test eax, eax
je 0x4b5d46
cmp dword [ebp + 0xc], 0
jle 0x4b5d46
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xd
jne 0x4b5d46
mov dword [ebp - 0x1c], 1
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
and eax, 0x40
test eax, eax
je 0x4b5d91
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4b5d88
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + str._________AA__A__________________]
movzx eax, al
and eax, 1
test eax, eax
je 0x4b5d90
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
or dword [ebp - 0xc], 0x40
sub dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
jns 0x4b5d5b
jmp 0x4b5d91
nop
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b5d9d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
jmp 0x4b5f54
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
je 0x4b5f4f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 9
jne 0x4b5f62
mov eax, dword [ebp + 0x10]
and eax, 0x80
test eax, eax
je 0x4b5e77
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jge 0x4b5e77
or dword [ebp - 0xc], 0x80
cmp dword [ebp + 0x14], 0
je 0x4b5f44
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
jmp 0x4b5f44
mov eax, dword [ebp + 0x10]
and eax, 0x800
test eax, eax
je 0x4b5f10
or dword [ebp - 0xc], 0x800
cmp dword [ebp + 0x14], 0
je 0x4b5f44
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
jmp 0x4b5f44
cmp dword [ebp + 0x14], 0
je 0x4b5f44
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
add eax, 1
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4b5f50
nop
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jl 0x4b5da9
jmp 0x4b5f63
nop
mov eax, dword [ebp + 0x10]
and eax, 0x100
test eax, eax
je 0x4b5fe3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov edx, eax
mov eax, dword [ebp + 0x10]
and eax, 0x3f
cmp edx, eax
jb 0x4b5fe3
or dword [ebp - 0xc], 0x100
cmp dword [ebp + 0x14], 0
je 0x4b5fdd
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x4b60cf
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
test eax, eax
jle 0x4b6046
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x4b609d
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
cmp dword [ebp - 0x1c], 0
je 0x4b60b6
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0xd
call sub.cygwin1.dll_fputc
cmp dword [ebp - 0x18], 0
je 0x4b60cf
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov eax, dword [ebp - 0xc]
leave
ret