Function at 0x4acc5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1c], al
cmp dword [ebp + 0x1c], 0
je 0x4acc84
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4acc84
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x4acc8f
mov eax, dword [ebp + 0x10]
add eax, 0x94
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x20], 0
je 0x4acd51
cmp dword [ebp + 0x14], 0
je 0x4accd5
mov eax, dword [ebp + 0x14]
lea esi, [eax + 0x94]
movsx ebx, byte [ebp - 0x1c]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._c_t_s:_s_t
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4accfc
movsx ebx, byte [ebp - 0x1c]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str._c_t:_s_t
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [ebp + 0x18], 0
je 0x4acd2d
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], str._s___s__n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4acea3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5b2ff4
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4acea3
mov dword [ebp - 0x10], 0x5b2d07
mov dword [ebp - 0x14], 0x5b2d07
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004aca20
test eax, eax
je 0x4acd8c
mov dword [esp], 1
call fcn.004ab9ee
mov dword [ebp - 0x10], eax
mov dword [esp], 0
call fcn.004ab9ee
mov dword [ebp - 0x14], eax
movsx ebx, byte [ebp - 0x1c]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], str.__s_c___s_s
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [ebp + 0x14], 0
je 0x4ace0f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004629c3
mov esi, eax
mov eax, dword [ebp + 0x14]
add eax, 0x94
mov dword [esp], eax
call fcn.004629c3
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_____s
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4ace2e
call sub.cygwin1.dll___getreent
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004629c3
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fputs
cmp dword [ebp + 0x18], 0
je 0x4ace8b
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x5b300f
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x29
call sub.cygwin1.dll_fputc
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
nop
add esp, 0x40
pop ebx
pop esi
pop ebp
ret