Function at 0x401610
Capabilities:
Terminate process
Write file on windows

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov edi, edx
sub esp, 0x10
call sub.cygwin1.dll___getreent
test esi, esi
mov ebx, dword [eax + 8]
je 0x40167a
test edi, edi
je 0x401650
mov ebx, dword [0x40c010]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], edi
mov dword [esp + 4], str._s:__s_r_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ebx, dword [0x40c010]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.Try___s___help_for_more_information._r_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], esi
call sub.cygwin1.dll_exit
mov eax, dword [0x40c010]
mov dword [esp + 0xc], str.0.12.20
mov dword [esp + 4], str._s_version__s_r_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x40c010]
mov dword [esp + 4], str.Usage:__s__options__file_..._n
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x40c010]
mov dword [esp + 4], str.___or:__s__options___ci_COMMAND_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fprintf
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.Send_file_s__with_ZMODEM_YMODEM_XMODEM_protocol_n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x78
mov dword [esp + 4], 1
mov dword [esp], str._____X___option_applies_to_XMODEM_only_n_____Y___option_applies_to_YMODEM_only_n_____Z___option_applies_to_ZMODEM_only_n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5a6
mov dword [esp + 4], 1
mov dword [esp], str._______append________________append_to_existing_destination_file__Z__n___2____twostop_______________use_2_stop_bits_n___4____try_4k________________go_up_to_4K_blocksize_n________start_4k______________start_with_4K_blocksize__doesnt_try_8__n___8____try_8k________________go_up_to_8K_blocksize_n________start_8k______________start_with_8K_blocksize_n___a____ascii_________________ASCII_transfer__change_CR_LF_to_LF__n___b____binary________________binary_transfer_n___B____bufsize_N_____________buffer_N_bytes__Nauto:_buffer_whole_file__n___c____command_COMMAND_______execute_remote_command_COMMAND__Z__n___C____command_tries_N_______try_N_times_to_execute_a_command__Z__n___d____dot_to_slash__________change_._to___in_pathnames__Y_Z__n________delay_startup_N_______sleep_N_seconds_before_doing_anything_n___e____escape________________escape_all_control_characters__Z__n___E____rename________________force_receiver_to_rename_files_it_already_has_n___f____full_path_____________send_full_pathname__Y_Z__n___i____immediate_command_CMD_send_remote_CMD__return_immediately__Z__n___h____help__________________print_this_usage_message_n___k____1k____________________send_1024_byte_packets__X__n___L____packetlen_N___________limit_subpacket_length_to_N_bytes__Z__n___l____framelen_N____________limit_frame_length_to_N_bytes__l_L___Z__n___m____min_bps_N_____________stop_transmission_if_BPS_below_N_n___M____min_bps_time_N__________for_at_least_N_seconds__default:_120__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x51b
mov dword [esp + 4], 1
mov dword [esp], str.___n____newer_________________send_file_if_source_newer__Z__n___N____newer_or_longer_______send_file_if_source_newer_or_longer__Z__n___o____16_bit_crc____________use_16_bit_CRC_instead_of_32_bit_CRC__Z__n___O____disable_timeouts______disable_timeout_code__wait_forever_n___p____protect_______________protect_existing_destination_file__Z__n___r____resume________________resume_interrupted_file_transfer__Z__n___R____restricted____________restricted__more_secure_mode_n___q____quiet_________________quiet__no_progress_reports__n___s____stop_at_HH:MMN____stop_transmission_at_HH:MM_or_in_N_seconds_n________tcp___________________build_a_TCP_connection_to_transmit_files_n________tcp_server____________open_socket__wait_for_connection_n___u____unlink________________unlink_file_after_transmission_n___U____unrestrict____________turn_off_restricted_mode__if_allowed_to__n___v____verbose_______________be_verbose__provide_debugging_information_n___w____windowsize_N__________Window_is_N_bytes__Z__n___X____xmodem________________use_XMODEM_protocol_n___y____overwrite_____________overwrite_existing_files_n___Y____overwrite_or_skip_____overwrite_existing_files__else_skip_n________ymodem________________use_YMODEM_protocol_n___Z____zmodem________________use_ZMODEM_protocol_n_nshort_options_use_the_same_arguments_as_the_long_ones_n
call sub.cygwin1.dll_fwrite
mov dword [esp], 0
call sub.cygwin1.dll_exit
lea esi, [esi]
sub esp, 0xc
xor edx, edx
mov eax, dword [esp + 0x10]
call fcn.00401610
nop