Function at 0x4bc267
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 0x4bc2b3
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 0x4bc2b3
mov dword [ebp - 0x18], 1
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
and eax, 0x200
test eax, eax
je 0x4bc2e2
cmp dword [ebp + 0xc], 0
jle 0x4bc2e2
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 0x4bc2e2
mov dword [ebp - 0x1c], 1
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
and eax, 0x40
test eax, eax
je 0x4bc32d
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4bc324
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 0x4bc32c
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 0x4bc2f7
jmp 0x4bc32d
nop
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4bc339
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
jmp 0x4bc4f0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
je 0x4bc4eb
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 9
jne 0x4bc4fe
mov eax, dword [ebp + 0x10]
and eax, 0x80
test eax, eax
je 0x4bc413
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jge 0x4bc413
or dword [ebp - 0xc], 0x80
cmp dword [ebp + 0x14], 0
je 0x4bc4e0
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 0x4bc4e0
mov eax, dword [ebp + 0x10]
and eax, 0x800
test eax, eax
je 0x4bc4ac
or dword [ebp - 0xc], 0x800
cmp dword [ebp + 0x14], 0
je 0x4bc4e0
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 0x4bc4e0
cmp dword [ebp + 0x14], 0
je 0x4bc4e0
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 0x4bc4ec
nop
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jl 0x4bc345
jmp 0x4bc4ff
nop
mov eax, dword [ebp + 0x10]
and eax, 0x100
test eax, eax
je 0x4bc57f
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 0x4bc57f
or dword [ebp - 0xc], 0x100
cmp dword [ebp + 0x14], 0
je 0x4bc579
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 0x4bc66b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
test eax, eax
jle 0x4bc5e2
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 0x4bc639
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 0x4bc652
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 0x4bc66b
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