Function at 0x420870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
cmp dword [ebp + 0x14], 4
push ebx
push esi
push edi
mov ebx, eax
jl 0x42089a
push str.________bucket_sorting_..._n
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 8
xor eax, eax
mov ecx, 0x101
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jle 0x4208dd
jmp 0x4208c0
mov edx, dword [ebp + 0xc]
movzx edx, byte [ecx + edx]
add dword [ebp + edx*4 - 0x414], 1
lea edx, [ebp + edx*4 - 0x414]
add ecx, 1
cmp ecx, eax
jl 0x4208c0
mov ecx, 0x100
lea esi, [ebp - 0x414]
lea edi, [ebp - 0x814]
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
jmp 0x420900
mov edx, dword [ebp + ecx*4 - 0x418]
add dword [ebp + ecx*4 - 0x414], edx
mov edx, dword [ebp + ecx*4 - 0x414]
add dword [ebp + ecx*4 - 0x410], edx
mov edx, dword [ebp + ecx*4 - 0x410]
add dword [ebp + ecx*4 - 0x40c], edx
mov edx, dword [ebp + ecx*4 - 0x40c]
add dword [ebp + ecx*4 - 0x408], edx
add ecx, 4
cmp ecx, 0x101
jl 0x420900
xor edx, edx
test eax, eax
jle 0x420972
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx]
lea esi, [ebp + ecx*4 - 0x414]
mov ecx, dword [esi]
sub ecx, 1
mov dword [esi], ecx
mov esi, dword [ebp + 8]
mov dword [esi + ecx*4], edx
add edx, 1
cmp edx, eax
jl 0x420950
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, 2
test eax, eax
jle 0x42098a
mov ecx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x414]
mov edx, ecx
sar edx, 5
and ecx, 0x1f
lea edx, [ebx + edx*4]
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + eax*4 - 0x410]
add eax, 4
or dword [edx], esi
mov edx, ecx
and ecx, 0x1f
sar edx, 5
lea edx, [ebx + edx*4]
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + eax*4 - 0x41c]
or dword [edx], esi
mov edx, ecx
and ecx, 0x1f
sar edx, 5
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + eax*4 - 0x418]
lea edx, [ebx + edx*4]
or dword [edx], esi
mov edx, ecx
and ecx, 0x1f
mov esi, 1
shl esi, cl
sar edx, 5
lea edx, [ebx + edx*4]
or dword [edx], esi
cmp eax, 0x100
jl 0x420990
mov edi, dword [ebp + 0x10]
mov eax, edi
mov dword [ebp - 4], 0x20
mov ecx, eax
sar ecx, 5
lea edx, [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
lea ecx, [eax + 1]
add eax, 2
or dword [edx], esi
mov edx, ecx
and ecx, 0x1f
mov esi, 1
shl esi, cl
sar edx, 5
lea edx, [ebx + edx*4]
not esi
and dword [edx], esi
sub dword [ebp - 4], 1
jne 0x420a12
mov eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jl 0x420a6f
push eax
push str.________depth__6d_has
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 0xc
xor edx, edx
xor eax, eax
test edi, edi
jle 0x420ab2
jmp 0x420a80
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], esi
je 0x420a98
mov edx, eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
sub ecx, dword [ebp - 4]
jns 0x420aa5
add ecx, edi
mov esi, dword [ebp + 0xc]
add eax, 1
cmp eax, edi
mov dword [esi + ecx*4], edx
jl 0x420a80
mov dword [ebp - 8], 0
or esi, 0xffffffff
lea esp, [esp]
lea eax, [esi + 1]
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov edx, eax
sar edx, 5
test dword [ebx + edx*4], esi
je 0x420afd
lea esp, [esp]
test ecx, ecx
je 0x420afd
add eax, 1
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov edx, eax
sar edx, 5
test dword [ebx + edx*4], esi
jne 0x420ae0
mov ecx, eax
sar ecx, 5
mov edx, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
test edx, esi
je 0x420b5d
cmp edx, 0xffffffff
jne 0x420b2e
lea ebx, [ebx]
add eax, 0x20
mov edx, eax
sar edx, 5
cmp dword [ebx + edx*4], 0xffffffff
je 0x420b20
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
je 0x420b5d
add eax, 1
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
jne 0x420b44
mov edi, dword [ebp + 0x10]
lea ecx, [eax - 1]
cmp ecx, edi
mov dword [ebp - 0xc], ecx
jge 0x420c77
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov edx, eax
sar edx, 5
test dword [ebx + edx*4], esi
jne 0x420ba1
test ecx, ecx
je 0x420ba1
add eax, 1
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov edx, eax
sar edx, 5
test dword [ebx + edx*4], esi
je 0x420b84
mov ecx, eax
sar ecx, 5
mov edx, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
test edx, esi
jne 0x420bfd
test edx, edx
jne 0x420bce
lea ecx, [ecx]
add eax, 0x20
mov edx, eax
sar edx, 5
cmp dword [ebx + edx*4], 0
je 0x420bc0
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
jne 0x420bfd
add eax, 1
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebx + ecx*4], edx
je 0x420be4
lea esi, [eax - 1]
cmp esi, edi
mov dword [ebp - 0x10], esi
jge 0x420c77
mov eax, dword [ebp - 0xc]
cmp esi, eax
jle 0x420ac0
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov edx, esi
sub edx, eax
lea edx, [ecx + edx + 1]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [ebp - 8], edx
call fcn.004205e0
mov eax, dword [ebp - 0xc]
add esp, 4
or ecx, 0xffffffff
cmp eax, esi
jg 0x420ac0
nop
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + edx*4]
cmp ecx, edi
je 0x420c6b
mov ecx, eax
sar ecx, 5
lea edx, [ebx + ecx*4]
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, edi
or dword [edx], esi
mov esi, dword [ebp - 0x10]
add eax, 1
cmp eax, esi
jle 0x420c40
jmp 0x420ac0
mov esi, dword [ebp + 0x14]
cmp esi, 4
jl 0x420c99
mov edx, dword [ebp - 8]
push edx
push str._6d_unresolved_strings_n
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, eax
cmp eax, edi
mov dword [ebp - 4], eax
jg 0x420caf
cmp dword [ebp - 8], 0
jne 0x420a52
cmp esi, 4
jl 0x420cca
push str.________reconstructing_block_..._n
call fcn.0043cb86
add eax, 0x40
push eax
call fcn.0043d0a2
add esp, 8
xor eax, eax
xor edx, edx
test edi, edi
jle 0x420d20
lea ecx, [ebp - 0x814]
cmp dword [ecx], 0
jne 0x420ced
lea ecx, [ecx]
add eax, 1
cmp dword [ebp + eax*4 - 0x814], 0
je 0x420ce0
mov esi, dword [ebp + 8]
mov esi, dword [esi + edx*4]
add dword [ebp + eax*4 - 0x814], 0xffffffff
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp + eax*4 - 0x814]
add edx, 1
cmp edx, edi
mov byte [ebx + esi], al
jl 0x420cd8
cmp eax, 0x100
jl 0x420d20
mov esi, 0x3ed
jmp 0x41a290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret