Function at 0x401a50
Capabilities:
Delete file
Terminate process

Disassembly:
mov ecx, dword [0x412588]
sub esp, 0x24
mov eax, 3
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
cmp ecx, eax
jne 0x401b70
cmp dword [0x413618], eax
je 0x401b70
mov al, byte [0x412580]
test al, al
je 0x401b70
lea eax, [esp + 4]
push eax
push 0x413200
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jne 0x401b0b
mov al, byte [0x4131eb]
test al, al
je 0x401ac6
mov ecx, dword [0x41360c]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push 0x4129c0
push ecx
add edx, 0x40
push str._s:_Deleting_output_file__s__if_it_exists._n
push edx
call esi
add esp, 0x10
mov eax, dword [0x412590]
test eax, eax
je 0x401ad9
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x4129c0
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
test eax, eax
je 0x401b70
mov eax, dword [0x41360c]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
push str._s:_WARNING:_deletion_of_output_file__apparently__failed._n
push ecx
call esi
add esp, 0xc
jmp 0x401b70
mov edx, dword [0x41360c]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edx
add eax, 0x40
push str._s:_WARNING:_deletion_of_output_file_suppressed_n
push eax
call esi
mov ecx, dword [0x41360c]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push ecx
add edx, 0x40
push str._s:____since_input_file_no_longer_exists.__Output_file_n
push edx
call esi
mov eax, dword [0x41360c]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push 0x4129c0
push eax
add ecx, 0x40
push str._s:______s_may_be_incomplete._n
push ecx
call esi
mov edx, dword [0x41360c]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edx
add eax, 0x40
push str._s:____I_suggest_doing_an_integrity_test__bzip2__tv__of_it._n
push eax
call esi
add esp, 0x34
mov al, byte [0x4131eb]
test al, al
je 0x401bac
mov eax, dword [0x41257c]
test eax, eax
jle 0x401bac
mov ecx, dword [0x413624]
cmp ecx, eax
jge 0x401bac
mov edx, eax
sub edx, ecx
push edx
push eax
mov eax, dword [0x41360c]
push eax
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str._s:_WARNING:_some_files_have_not_been_processed:_n_s:_____d_specified_on_command_line___d_not_processed_yet._n_n
add eax, 0x40
push eax
call esi
add esp, 0x18
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00401a00
mov edx, dword [0x412584]
add esp, 4
push edx
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [0x413618], 1
jne 0x401bf0
mov eax, dword [0x41360c]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
push str._n_s:_Caught_a_SIGSEGV_or_SIGBUS_whilst_compressing._n_n___Possible_causes_are__most_likely_first_:_n____1__This_computer_has_unreliable_memory_or_cache_hardware_n________a_surprisingly_common_problem__try_a_different_machine.__n____2__A_bug_in_the_compiler_used_to_create_this_executable_n________unlikely__if_you_didnt_compile_bzip2_yourself.__n____3__A_real_bug_in_bzip2____I_hope_this_should_never_be_the_case._n___The_users_manual__Section_4.3__has_more_info_on__1__and__2_._n____n___If_you_suspect_this_is_a_bug_in_bzip2__or_are_unsure_about__1__n___or__2___feel_free_to_report_it_to_me_at:_jseward_bzip.org._n___Section_4.3_of_the_users_manual_describes_the_info_a_useful_n___bug_report_should_have.__If_the_manual_is_available_on_your_n___system__please_try_and_read_it_before_mailing_me.__If_you_dont_n___have_the_manual_or_cant_be_bothered_to_read_it__mail_me_anyway._n_n
push ecx
jmp 0x401c05
mov edx, dword [0x41360c]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edx
add eax, 0x40
push str._n_s:_Caught_a_SIGSEGV_or_SIGBUS_whilst_decompressing._n_n___Possible_causes_are__most_likely_first_:_n____1__The_compressed_data_is_corrupted__and_bzip2s_usual_checks_n_______failed_to_detect_this.__Try_bzip2__tvv_my_file.bz2._n____2__This_computer_has_unreliable_memory_or_cache_hardware_n________a_surprisingly_common_problem__try_a_different_machine.__n____3__A_bug_in_the_compiler_used_to_create_this_executable_n________unlikely__if_you_didnt_compile_bzip2_yourself.__n____4__A_real_bug_in_bzip2____I_hope_this_should_never_be_the_case._n___The_users_manual__Section_4.3__has_more_info_on__2__and__3_._n____n___If_you_suspect_this_is_a_bug_in_bzip2__or_are_unsure_about__2__n___or__3___feel_free_to_report_it_to_me_at:_jseward_bzip.org._n___Section_4.3_of_the_users_manual_describes_the_info_a_useful_n___bug_report_should_have.__If_the_manual_is_available_on_your_n___system__please_try_and_read_it_before_mailing_me.__If_you_dont_n___have_the_manual_or_cant_be_bothered_to_read_it__mail_me_anyway._n_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
call fcn.00401c70
cmp dword [0x413618], 1
jne 0x401c27
push 3
call fcn.00401a50
add esp, 4
ret
call fcn.00401c40
push 2
call fcn.00401a50
pop ecx
ret