Function at 0x401d20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401e2c
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401e2c
cmp dword [esp + 0x2c], 0
je 0x401e2c
push esi
call fcn.00408690
add esp, 4
test eax, eax
je 0x401d8a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401d91
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401d70
jmp 0x401d93
mov ebx, 0x1505
jmp 0x401d93
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov ebp, dword [ecx + 0x20]
mov esi, ebp
mov edx, ebx
not edx
sub esi, 1
mov dword [esp + 4], edx
jae 0x401e34
mov esi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x401df1
call fcn.00401f60
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x401e2c
push ecx
call fcn.00408690
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebp, dword [ecx + 0x20]
mov eax, ebp
sub eax, 1
jae 0x401ec0
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov edi, dword [esp + 0x28]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + esi*4], edx
mov eax, dword [ecx + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [edi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
or esi, edx
mov edx, ebp
xor edx, 1
mov eax, ebp
and eax, 0xfffffffe
add eax, eax
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea edi, [ebx + esi]
inc edi
jmp 0x401e68
inc edi
dec ebp
je 0x401dad
mov esi, edi
and esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x401db2
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e60
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + eax*4]
push esi
call fcn.00408690
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e60
push dword [esp]
push esi
push dword [esp + 0x30]
call fcn.004086b0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e60
mov eax, 0xffffffff
jmp 0x401e2c
or eax, dword [esp + 4]
mov edx, ebp
xor edx, 1
mov esi, ebp
and esi, 0xfffffffe
add esi, esi
sub esi, edx
mov dword [esp + 0xc], esi
mov edx, dword [ecx + 4]
mov dword [esp + 8], edx
lea edi, [ebx + eax]
inc edi
jmp 0x401ef8
inc edi
dec ebp
je 0x401dec
mov esi, edi
and esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x401df1
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401ef0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 4], eax
push eax
call fcn.00408690
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ef0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004086b0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ef0
jmp 0x401df1