Function at 0x4d2aaf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 0xc]
and eax, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4d2b73
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
shr eax, 0xc
and eax, 3
test eax, eax
je 0x4d2b6f
cmp dword [ebp - 0x14], 0
je 0x4d2b05
mov eax, 0xffffffff
jmp 0x4d2ca8
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xa
jbe 0x4d2b39
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x5bb710
call sub.cygwin1.dll_fwrite
jmp 0x4d2b82
mov eax, dword [ebp - 0x18]
add eax, 0x40
mov dword [esp], eax
call fcn.0042bbe2
mov ebx, eax
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x64]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str._s:_unmerged___s__n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [ebp - 0xc], eax
jb 0x4d2ad3
cmp dword [ebp - 0x10], 0
je 0x4d2b92
mov eax, 0xffffffff
jmp 0x4d2ca8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4d2c82
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, 1
shl eax, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x2c]
cmp edx, eax
jbe 0x4d2c7e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x4d2c7e
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x4d2c7e
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xa
jbe 0x4d2c58
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x5bb710
call sub.cygwin1.dll_fwrite
jmp 0x4d2c96
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], str.You_have_both__s_and__s_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x4d2ba5
cmp dword [ebp - 0x10], 0
je 0x4d2ca3
mov eax, 0xffffffff
jmp 0x4d2ca8
mov eax, 0
add esp, 0x40
pop ebx
pop esi
pop ebp
ret