Function at 0x4d8fd3
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 0x4d9097
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 0x4d9093
cmp dword [ebp - 0x14], 0
je 0x4d9029
mov eax, 0xffffffff
jmp 0x4d91cc
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xa
jbe 0x4d905d
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], 0x5b9b50
call sub.cygwin1.dll_fwrite
jmp 0x4d90a6
mov eax, dword [ebp - 0x18]
add eax, 0x40
mov dword [esp], eax
call fcn.00431daa
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 0x4d8ff7
cmp dword [ebp - 0x10], 0
je 0x4d90b6
mov eax, 0xffffffff
jmp 0x4d91cc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4d91a6
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 0x4d91a2
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
jne 0x4d91a2
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 0x4d91a2
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xa
jbe 0x4d917c
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], 0x5b9b50
call sub.cygwin1.dll_fwrite
jmp 0x4d91ba
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 0x4d90c9
cmp dword [ebp - 0x10], 0
je 0x4d91c7
mov eax, 0xffffffff
jmp 0x4d91cc
mov eax, 0
add esp, 0x40
pop ebx
pop esi
pop ebp
ret