Function at 0x401d00
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 0x401e63
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401e63
cmp dword [esp + 0x2c], 0
je 0x401e63
push esi
call fcn.004084c0
add esp, 4
test eax, eax
je 0x401d74
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 0x401d7b
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, ebx
cmp edi, eax
jb 0x401d50
jmp 0x401d7d
mov ebx, 0x1505
jmp 0x401d7d
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x401e05
mov dword [esp], eax
mov eax, edi
not eax
and eax, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401db4
inc esi
dec edi
je 0x401e05
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401e0a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401db0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.004084c0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401db0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.004084e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401db0
mov eax, 0xffffffff
jmp 0x401e63
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jae 0x401e4f
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
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 [esi], eax
xor eax, eax
jmp 0x401e63
call fcn.00401f20
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
je 0x401e6b
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.004084c0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x401f0e
mov eax, edi
not eax
and eax, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401eb4
inc esi
dec edi
je 0x401f0e
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401e12
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401eb0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004084c0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401eb0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.004084e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401eb0
jmp 0x401e12
mov ebp, 0xffffffff
jmp 0x401e12