Function at 0x554a2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
cmp dword [ebp + 0x18], 0
je 0x554a43
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
jmp 0x554a4b
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp], str.usage:__s
call fcn.005525aa
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
sub eax, 2
mov dword [ebp - 0x2c], eax
mov dword [esp], str.___or:__s
call fcn.005525aa
mov dword [ebp - 0x30], eax
mov dword [esp], 0x5cba41
call fcn.005525aa
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x554aa9
mov eax, 0xfffffffe
jmp 0x554f3d
cmp dword [ebp + 0x18], 0
jne 0x554c4f
cmp dword [ebp + 8], 0
je 0x554c4f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
je 0x554c4f
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.cat___EOF_n
call sub.cygwin1.dll_fwrite
jmp 0x554c4f
mov eax, dword [ebp + 0xc]
lea edx, [eax + 4]
mov dword [ebp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.005525aa
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
movzx eax, byte [ebp - 0x44]
or eax, 1
mov byte [ebp - 0x44], al
cmp dword [ebp - 0x14], 0
jne 0x554b50
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test al, al
jne 0x554b50
mov dword [ebp - 0x14], 1
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xa
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0048eb5c
mov dword [ebp - 0x18], 0
jmp 0x554c2a
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x18]
shl eax, 3
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x14], 0
je 0x554bc2
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test al, al
je 0x554bc2
mov dword [esp], str._____s
call fcn.005525aa
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0048c914
jmp 0x554c26
cmp dword [ebp - 0x14], 0
je 0x554bdd
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
jmp 0x554c26
cmp dword [ebp - 0x18], 0
jne 0x554bfe
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0048c914
jmp 0x554c26
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x5cb2b3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0048c914
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jb 0x554b7e
mov dword [esp + 4], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0048e723
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x554af6
mov dword [ebp - 0xc], 1
jmp 0x554edc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 1
jne 0x554cc7
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax]
test al, al
je 0x554ed4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.005525aa
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cba5a
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x554ed4
cmp dword [ebp + 0x14], 0
jne 0x554cde
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 8
test eax, eax
jne 0x554ed7
cmp dword [ebp - 0xc], 0
je 0x554cfe
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x5cba5e
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x554d6d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 0x20
test eax, eax
je 0x554d4d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cba63
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0x1c], eax
jmp 0x554d6d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cb36a
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x554d97
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x554d97
mov dword [esp + 4], 0x5cba66
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x554dc1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cb365
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 2
jne 0x554de9
mov dword [esp], str._NUM
call fcn.005525aa
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004af450
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
jne 0x554e03
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 2
test eax, eax
jne 0x554e18
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0055494e
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x18
ja 0x554e2b
mov eax, 0x18
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x554e45
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov dword [ebp - 0x20], 0x18
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 3
jne 0x554e9b
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp + 0xc], 0x5cb2b3
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5cba6e
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0xc]
mov dword [esp], str.alias_of____s
call fcn.005525aa
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0048c914
jmp 0x554ed8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.005525aa
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x5cb2b3
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s_n
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x554ed8
nop
jmp 0x554ed8
nop
add dword [ebp + 0x10], 0x2c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x554c68
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
cmp dword [ebp + 0x18], 0
jne 0x554f38
cmp dword [ebp + 8], 0
je 0x554f38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
je 0x554f38
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.EOF_n
call sub.cygwin1.dll_fwrite
mov eax, 0xfffffffe
mov ebx, dword [ebp - 4]
leave
ret