Function at 0x421f70
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 0x421f9a
push str.________bucket_sorting_..._n
call fcn.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
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 0x421fdd
jmp 0x421fc0
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 0x421fc0
mov ecx, 0x100
lea esi, [ebp - 0x414]
lea edi, [ebp - 0x814]
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
jmp 0x422000
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 0x422000
xor edx, edx
test eax, eax
jle 0x422072
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 0x422050
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, 2
test eax, eax
jle 0x42208a
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 0x422090
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 0x422112
mov eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jl 0x42216f
push eax
push str.________depth__6d_has
call fcn.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
add esp, 0xc
xor edx, edx
xor eax, eax
test edi, edi
jle 0x4221b2
jmp 0x422180
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 0x422198
mov edx, eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
sub ecx, dword [ebp - 4]
jns 0x4221a5
add ecx, edi
mov esi, dword [ebp + 0xc]
add eax, 1
cmp eax, edi
mov dword [esi + ecx*4], edx
jl 0x422180
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 0x4221fd
lea esp, [esp]
test ecx, ecx
je 0x4221fd
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 0x4221e0
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 0x42225d
cmp edx, 0xffffffff
jne 0x42222e
lea ebx, [ebx]
add eax, 0x20
mov edx, eax
sar edx, 5
cmp dword [ebx + edx*4], 0xffffffff
je 0x422220
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 0x42225d
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 0x422244
mov edi, dword [ebp + 0x10]
lea ecx, [eax - 1]
cmp ecx, edi
mov dword [ebp - 0xc], ecx
jge 0x422377
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 0x4222a1
test ecx, ecx
je 0x4222a1
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 0x422284
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 0x4222fd
test edx, edx
jne 0x4222ce
lea ecx, [ecx]
add eax, 0x20
mov edx, eax
sar edx, 5
cmp dword [ebx + edx*4], 0
je 0x4222c0
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 0x4222fd
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 0x4222e4
lea esi, [eax - 1]
cmp esi, edi
mov dword [ebp - 0x10], esi
jge 0x422377
mov eax, dword [ebp - 0xc]
cmp esi, eax
jle 0x4221c0
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.00421ce0
mov eax, dword [ebp - 0xc]
add esp, 4
or ecx, 0xffffffff
cmp eax, esi
jg 0x4221c0
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 0x42236b
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 0x422340
jmp 0x4221c0
mov esi, dword [ebp + 0x14]
cmp esi, 4
jl 0x422399
mov edx, dword [ebp - 8]
push edx
push str._6d_unresolved_strings_n
call fcn.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, eax
cmp eax, edi
mov dword [ebp - 4], eax
jg 0x4223af
cmp dword [ebp - 8], 0
jne 0x422152
cmp esi, 4
jl 0x4223ca
push str.________reconstructing_block_..._n
call fcn.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
add esp, 8
xor eax, eax
xor edx, edx
test edi, edi
jle 0x422420
lea ecx, [ebp - 0x814]
cmp dword [ecx], 0
jne 0x4223ed
lea ecx, [ecx]
add eax, 1
cmp dword [ebp + eax*4 - 0x814], 0
je 0x4223e0
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 0x4223d8
cmp eax, 0x100
jl 0x422420
mov esi, 0x3ed
jmp 0x41b990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret