Function at 0x553128
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
cmp dword [ebp + 0x18], 0
je 0x55313f
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
jmp 0x553147
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp], str.usage:__s
call fcn.00550ca6
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.00550ca6
mov dword [ebp - 0x30], eax
mov dword [esp], 0x5c9701
call fcn.00550ca6
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 0x5531a5
mov eax, 0xfffffffe
jmp 0x553639
cmp dword [ebp + 0x18], 0
jne 0x55334b
cmp dword [ebp + 8], 0
je 0x55334b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
je 0x55334b
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 0x55334b
mov eax, dword [ebp + 0xc]
lea edx, [eax + 4]
mov dword [ebp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00550ca6
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 0x55324c
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test al, al
jne 0x55324c
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.00496014
mov dword [ebp - 0x18], 0
jmp 0x553326
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 0x5532be
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test al, al
je 0x5532be
mov dword [esp], str._____s
call fcn.00550ca6
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.00493dcc
jmp 0x553322
cmp dword [ebp - 0x14], 0
je 0x5532d9
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
jmp 0x553322
cmp dword [ebp - 0x18], 0
jne 0x5532fa
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.00493dcc
jmp 0x553322
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x5c8f73
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.00493dcc
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jb 0x55327a
mov dword [esp + 4], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.00495bdb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x5531f2
mov dword [ebp - 0xc], 1
jmp 0x5535d8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 1
jne 0x5533c3
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 0x5535d0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.00550ca6
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c971a
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x5535d0
cmp dword [ebp + 0x14], 0
jne 0x5533da
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 8
test eax, eax
jne 0x5535d3
cmp dword [ebp - 0xc], 0
je 0x5533fa
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], 0x5c971e
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 0x553469
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 0x20
test eax, eax
je 0x553449
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c9723
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add dword [ebp - 0x1c], eax
jmp 0x553469
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c902a
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 0x553493
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x553493
mov dword [esp + 4], 0x5c9726
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 0x5534bd
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c9025
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 0x5534e5
mov dword [esp], str._NUM
call fcn.00550ca6
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004b6908
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
jne 0x5534ff
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 2
test eax, eax
jne 0x553514
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0055304a
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x18
ja 0x553527
mov eax, 0x18
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x553541
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 0x553597
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [esp + 0xc], 0x5c8f73
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c972e
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.00550ca6
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00493dcc
jmp 0x5535d4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.00550ca6
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x5c8f73
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 0x5535d4
nop
jmp 0x5535d4
nop
add dword [ebp + 0x10], 0x2c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x553364
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 0x553634
cmp dword [ebp + 8], 0
je 0x553634
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
and eax, 0x40
test eax, eax
je 0x553634
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