Function at 0x401600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
cmp dword [ebp + 0x10], 4
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
jl 0x401630
push str.______backet_sorting_..._n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
mov edx, dword [ebp - 4]
add esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
mov ecx, 0x101
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
xor ecx, ecx
test ebx, ebx
jle 0x401660
jmp 0x401650
movzx eax, byte [ecx + edx]
inc ecx
inc dword [ebp + eax*4 - 0x418]
cmp ecx, ebx
jl 0x401650
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0x418]
lea edi, [ebp - 0x818]
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
jmp 0x401680
mov eax, dword [ebp + ecx*4 - 0x41c]
add dword [ebp + ecx*4 - 0x418], eax
mov eax, dword [ebp + ecx*4 - 0x418]
add dword [ebp + ecx*4 - 0x414], eax
mov eax, dword [ebp + ecx*4 - 0x414]
add dword [ebp + ecx*4 - 0x410], eax
mov eax, dword [ebp + ecx*4 - 0x410]
add dword [ebp + ecx*4 - 0x40c], eax
add ecx, 4
cmp ecx, 0x101
jl 0x401680
xor edx, edx
test ebx, ebx
jle 0x4016ee
mov esi, dword [ebp - 8]
lea esp, [esp]
mov eax, dword [ebp - 4]
movzx eax, byte [edx + eax]
mov ecx, dword [ebp + eax*4 - 0x418]
dec ecx
mov dword [ebp + eax*4 - 0x418], ecx
mov dword [esi + ecx*4], edx
inc edx
cmp edx, ebx
jl 0x4016d0
mov eax, ebx
mov ebx, dword [ebp + 8]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, 2
test eax, eax
jle 0x40170b
mov ecx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [ecx]
mov ecx, dword [ebp + esi*4 - 0x418]
mov eax, ecx
sar eax, 5
and ecx, 0x1f
lea edx, [ebx + eax*4]
mov eax, 1
shl eax, cl
inc esi
or dword [edx], eax
cmp esi, 0x100
jl 0x401710
mov esi, dword [ebp + 0xc]
mov edi, 0x20
lea esp, [esp]
mov eax, esi
sar eax, 5
mov ecx, esi
lea edx, [ebx + eax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
lea ecx, [esi + 1]
add esi, 2
or dword [edx], eax
mov eax, ecx
sar eax, 5
and ecx, 0x1f
lea edx, [ebx + eax*4]
mov eax, 1
shl eax, cl
not eax
and dword [edx], eax
dec edi
jne 0x401740
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, 1
mov dword [ebp - 0x10], eax
cmp ecx, 4
jl 0x4017a1
push eax
push str.________depth__6d_has
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
xor esi, esi
xor ecx, ecx
lea edx, [esi + 1]
test edi, edi
jle 0x4017d8
lea esp, [esp]
mov eax, ecx
sar eax, 5
test dword [ebx + eax*4], edx
mov eax, dword [ebp - 8]
cmovne esi, ecx
mov eax, dword [eax + ecx*4]
sub eax, dword [ebp - 0x10]
jns 0x4017c8
add eax, edi
rol edx, 1
mov ebx, dword [ebp - 4]
inc ecx
mov dword [ebx + eax*4], esi
mov ebx, dword [ebp + 8]
cmp ecx, edi
jl 0x4017b0
xor esi, esi
mov dword [ebp - 0xc], esi
or esi, 0xffffffff
lea eax, [esi + 1]
mov ecx, eax
and ecx, 0x1f
mov edx, 1
mov esi, eax
shl edx, cl
sar esi, 5
test dword [ebx + esi*4], edx
je 0x40181b
lea esp, [esp]
test ecx, ecx
je 0x40181b
inc eax
mov ecx, eax
and ecx, 0x1f
mov edx, 1
mov esi, eax
shl edx, cl
sar esi, 5
test dword [ebx + esi*4], edx
jne 0x401800
mov ecx, eax
sar ecx, 5
mov edx, 1
mov esi, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
shl edx, cl
test esi, edx
je 0x401870
cmp esi, 0xffffffff
jne 0x401846
add eax, 0x20
mov ecx, eax
sar ecx, 5
cmp dword [ebx + ecx*4], 0xffffffff
je 0x401838
mov ecx, eax
mov esi, 1
rol esi, cl
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
je 0x401870
rol esi, 1
inc eax
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], esi
jne 0x401863
lea edi, [eax - 1]
cmp edi, dword [ebp + 0xc]
jge 0x401979
mov ecx, eax
and ecx, 0x1f
mov edx, 1
mov esi, eax
shl edx, cl
sar esi, 5
test dword [ebx + esi*4], edx
jne 0x4018ad
test ecx, ecx
je 0x4018ad
inc eax
mov ecx, eax
and ecx, 0x1f
mov edx, 1
mov esi, eax
shl edx, cl
sar esi, 5
test dword [ebx + esi*4], edx
je 0x401892
mov ecx, eax
sar ecx, 5
mov edx, 1
mov esi, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
shl edx, cl
test esi, edx
jne 0x40190d
test esi, esi
jne 0x4018de
lea esp, [esp]
add eax, 0x20
mov ecx, eax
sar ecx, 5
cmp dword [ebx + ecx*4], 0
je 0x4018d0
mov ecx, eax
mov esi, 1
rol esi, cl
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
jne 0x40190d
jmp 0x401900
rol esi, 1
inc eax
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], esi
je 0x401900
lea esi, [eax - 1]
cmp esi, dword [ebp + 0xc]
jge 0x401979
cmp esi, edi
jle 0x4017e0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, esi
inc ecx
sub eax, edi
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.00401360
or ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
mov edx, 1
mov ecx, edi
rol edx, cl
add esp, 8
cmp edi, esi
jg 0x4017e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + eax*4]
cmp dword [ebp - 0x14], ecx
je 0x40196d
mov eax, edi
sar eax, 5
mov dword [ebp - 0x14], ecx
or dword [ebx + eax*4], edx
rol edx, 1
inc edi
cmp edi, esi
jle 0x401951
jmp 0x4017e0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
cmp ecx, 4
jl 0x4019a0
push esi
push str._6d_unresolved_strings_n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jg 0x4019b7
test esi, esi
jne 0x401783
cmp ecx, 4
jl 0x4019d4
push str.________reconstructing_block_..._n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x401a47
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x818]
cmp dword [edx], 0
jne 0x4019fb
lea ebx, [ebx]
inc ecx
cmp dword [ebp + ecx*4 - 0x818], 0
je 0x4019f0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x818]
mov eax, dword [eax + esi*4]
dec dword [edx + ecx*4]
lea edx, [edx + ecx*4]
inc esi
mov byte [ebx + eax], cl
cmp esi, edi
jl 0x4019e5
cmp ecx, 0x100
jl 0x401a47
push str.1.0.6__6_Sept_2010
push 0x3ed
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]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret