Function at 0x404e50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x404f73
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x404f73
cmp dword [esp + 0x30], 0
je 0x404f73
push esi
call fcn.0040c990
add esp, 4
test eax, eax
je 0x404ebf
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 0x404ec6
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
add edi, 0xdc8e70fd
mov ecx, ebx
cmp edi, eax
jb 0x404ea0
jmp 0x404ec8
mov ebx, 0x1505
jmp 0x404ec8
mov ebx, ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 0x20]
lea edx, [edi - 1]
mov esi, ebx
not esi
mov dword [esp + 0xc], edi
sub edi, 1
mov dword [esp + 0x10], edi
mov dword [esp + 4], esi
jae 0x404f7b
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x404f38
call fcn.00405bb0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x2c]
jne 0x404f73
push ecx
call fcn.0040c990
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x20]
lea edi, [eax - 1]
mov dword [esp + 0xc], eax
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x404ffc
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x2c]
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 + 0x30]
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
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
or edx, esi
lea esi, [edx + ebx]
inc esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor edi, edi
jmp 0x404f9b
inc edi
cmp dword [esp + 0xc], edi
je 0x404eeb
mov eax, edi
and eax, esi
mov edx, edi
xor edx, esi
lea ebp, [edx + eax*2]
and ebp, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404ef0
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404f90
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c990
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x404f90
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c9b0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x404f90
mov eax, 0xffffffff
jmp 0x404f73
lea eax, [ebx + 1]
or edi, dword [esp + 4]
add edi, eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor esi, esi
jmp 0x40501b
inc esi
cmp dword [esp + 0xc], esi
je 0x404f33
mov eax, esi
and eax, edi
mov edx, esi
xor edx, edi
lea ebp, [edx + eax*2]
and ebp, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404f38
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x405010
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 4], eax
push eax
call fcn.0040c990
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405010
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x34]
call fcn.0040c9b0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405010
jmp 0x404f38