Function at 0x406a50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1444
call fcn.0040ae90
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov ebx, 1
test edi, edi
jle 0x406a93
lea esi, [ebp - 0xc30]
sub esi, edx
mov ecx, edi
lea esp, [esp]
mov eax, dword [edx]
test eax, eax
cmove eax, ebx
shl eax, 8
mov dword [esi + edx], eax
lea edx, [edx + 4]
dec ecx
jne 0x406a80
xor esi, esi
mov dword [ebp - 8], edi
lea ebx, [esi + 1]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0xc34], esi
mov dword [ebp - 0x1444], 0xfffffffe
cmp edi, ebx
jl 0x406ce0
mov ecx, edi
or eax, 0xffffffff
lea edi, [ebp - 0x1440]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + ebx*4 - 0xc34]
inc esi
mov eax, esi
sar eax, 1
mov dword [ebp + esi*4 - 0x424], ebx
mov edx, dword [ebp + eax*4 - 0x424]
mov ecx, esi
cmp edi, dword [ebp + edx*4 - 0xc34]
jge 0x406b0b
jmp 0x406af0
mov dword [ebp + ecx*4 - 0x424], edx
mov ecx, eax
sar eax, 1
mov edx, dword [ebp + eax*4 - 0x424]
cmp edi, dword [ebp + edx*4 - 0xc34]
jl 0x406af0
mov edi, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x424], ebx
inc ebx
cmp ebx, edi
jle 0x406ac6
cmp esi, 0x104
jge 0x406d79
cmp esi, 1
jle 0x406ce4
nop
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp + esi*4 - 0x424]
mov dword [ebp - 0x14], eax
dec esi
mov eax, 2
mov dword [ebp - 4], ecx
mov dword [ebp - 0x420], ecx
mov edi, 1
cmp esi, eax
jl 0x406ba4
mov ebx, dword [ebp + ecx*4 - 0xc34]
cmp eax, esi
jge 0x406b82
mov ecx, dword [ebp + eax*4 - 0x420]
mov edx, dword [ebp + eax*4 - 0x424]
mov ecx, dword [ebp + ecx*4 - 0xc34]
cmp ecx, dword [ebp + edx*4 - 0xc34]
jge 0x406b82
inc eax
mov ecx, dword [ebp + eax*4 - 0x424]
cmp ebx, dword [ebp + ecx*4 - 0xc34]
jl 0x406ba1
mov dword [ebp + edi*4 - 0x424], ecx
mov edi, eax
add eax, eax
cmp eax, esi
jle 0x406b61
mov ecx, dword [ebp - 4]
mov dword [ebp + edi*4 - 0x424], ecx
mov eax, dword [ebp + esi*4 - 0x424]
mov ecx, dword [ebp - 0x420]
dec esi
mov edx, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], eax
mov edi, 1
cmp esi, edx
jl 0x406c22
mov ebx, dword [ebp + eax*4 - 0xc34]
cmp edx, esi
jge 0x406bfd
mov eax, dword [ebp + edx*4 - 0x420]
mov ecx, dword [ebp + edx*4 - 0x424]
mov eax, dword [ebp + eax*4 - 0xc34]
cmp eax, dword [ebp + ecx*4 - 0xc34]
jge 0x406bfd
inc edx
mov eax, dword [ebp + edx*4 - 0x424]
cmp ebx, dword [ebp + eax*4 - 0xc34]
jl 0x406c1c
mov dword [ebp + edi*4 - 0x424], eax
mov edi, edx
add edx, edx
cmp edx, esi
jle 0x406bdc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0xc34]
mov dword [ebp + edi*4 - 0x424], eax
mov eax, dword [ebp - 0x14]
inc ebx
mov edi, dword [ebp + eax*4 - 0xc34]
mov dword [ebp + ecx*4 - 0x1444], ebx
mov dword [ebp + eax*4 - 0x1444], ebx
mov eax, edi
and eax, 0xff
mov ecx, edx
and ecx, 0xff
cmp eax, ecx
cmovg ecx, eax
and edi, 0xffffff00
and edx, 0xffffff00
add edi, edx
lea eax, [ecx + 1]
inc esi
or edi, eax
mov eax, esi
sar eax, 1
mov dword [ebp + esi*4 - 0x424], ebx
mov edx, dword [ebp + eax*4 - 0x424]
mov dword [ebp + ebx*4 - 0xc34], edi
mov dword [ebp - 8], ebx
mov dword [ebp + ebx*4 - 0x1444], 0xffffffff
mov ecx, esi
cmp edi, dword [ebp + edx*4 - 0xc34]
jge 0x406ccb
jmp 0x406cb0
mov dword [ebp + ecx*4 - 0x424], edx
mov ecx, eax
sar eax, 1
mov edx, dword [ebp + eax*4 - 0x424]
cmp edi, dword [ebp + edx*4 - 0xc34]
jl 0x406cb0
mov dword [ebp + ecx*4 - 0x424], ebx
cmp esi, 1
jg 0x406b30
mov edi, dword [ebp + 8]
jmp 0x406ce7
mov ebx, edi
jmp 0x406ce7
mov ebx, dword [ebp - 8]
cmp ebx, 0x204
jge 0x406da3
mov esi, 1
xor bl, bl
cmp edi, esi
jl 0x406daf
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1440]
jmp 0x406d10
xor ecx, ecx
cmp dword [edx], ecx
jl 0x406d37
mov eax, edx
jmp 0x406d20
mov eax, dword [eax]
inc ecx
cmp dword [ebp + eax*4 - 0x1444], 0
lea eax, [ebp + eax*4 - 0x1444]
jge 0x406d20
mov eax, dword [ebp - 0xc]
cmp ecx, 0x11
mov byte [eax + esi - 1], cl
movzx ebx, bl
mov ecx, 1
cmovg ebx, ecx
inc esi
add edx, 4
cmp esi, edi
jle 0x406d10
test bl, bl
je 0x406daf
mov eax, dword [ebp + ecx*4 - 0xc34]
sar eax, 8
cdq
sub eax, edx
sar eax, 1
inc eax
shl eax, 8
mov dword [ebp + ecx*4 - 0xc34], eax
inc ecx
cmp ecx, edi
jle 0x406d55
jmp 0x406a93
push str.1.0.6__6_Sept_2010
push 0x7d1
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__10_December_2007._n_n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
push 3
call dword [sym.imp.msvcrt.dll_exit]
push str.1.0.6__6_Sept_2010
push 0x7d2
jmp 0x406d83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret