Function at 0x404bf0
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 0x404cf4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x404cf4
cmp dword [esp + 0x30], 0
je 0x404cf4
push esi
call fcn.0040c690
add esp, 4
test eax, eax
je 0x404c5a
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 0x404c61
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404c40
jmp 0x404c63
mov ebx, 0x1505
jmp 0x404c63
mov ebx, ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 0x20]
mov edx, edi
sub edx, 1
jae 0x404cfc
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x404cb9
call fcn.004059f0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x2c]
jne 0x404cf4
push ecx
call fcn.0040c690
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x20]
mov edx, esi
sub edx, 1
jae 0x404d98
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 + 4], eax
and edx, ebx
mov eax, edi
not eax
and eax, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor esi, esi
jmp 0x404d35
mov eax, esi
and eax, 1
xor esi, 1
lea esi, [esi + eax*2]
cmp esi, edi
mov edx, ebp
jae 0x404c75
lea ebp, [esi + edx]
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c7a
mov ebp, edx
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404d20
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp], eax
push eax
call fcn.0040c690
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x404d20
push dword [esp + 4]
push dword [esp + 4]
push dword [esp + 0x34]
call fcn.0040c6c0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x404d20
mov eax, 0xffffffff
jmp 0x404cf4
and edx, ebx
mov eax, esi
not eax
and eax, 1
mov edi, esi
and edi, 0xfffffffe
sub edi, eax
mov dword [esp + 0xc], edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 4], edx
jmp 0x404dd7
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, esi
mov edx, dword [esp + 4]
jae 0x404cb4
lea ebp, [edi + edx]
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404cb9
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404dc0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x10], eax
push eax
call fcn.0040c690
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x404dc0
push dword [esp]
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.0040c6c0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x404dc0
jmp 0x404cb9