Function at 0x404bf0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x28]
mov eax, 0xffffffff
test edi, edi
je 0x404d39
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x404d39
cmp dword [esp + 0x30], 0
je 0x404d39
push ebp
call fcn.0040c9b0
add esp, 4
mov dword [esp], eax
mov ebx, 0x1505
test eax, eax
je 0x404c5f
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebp + eax]
test ecx, ecx
je 0x404c5f
mov edx, ebx
shl edx, 5
mov esi, edx
and esi, ebx
xor edx, ebx
add edx, ecx
lea ebx, [edx + esi*2]
inc eax
cmp dword [esp], eax
jne 0x404c40
mov esi, dword [edi + 0x20]
test esi, esi
je 0x404cd5
lea ecx, [esi - 1]
mov eax, ebx
not eax
mov dword [esp + 8], ecx
or eax, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 4], ecx
lea edi, [ebx + eax]
inc edi
jmp 0x404c84
inc edi
dec esi
je 0x404cd5
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404cda
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
cmp dword [ecx + eax*4], ebx
jne 0x404c80
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c9b0
add esp, 4
cmp eax, dword [esp]
jne 0x404c80
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c9d0
add esp, 0xc
test eax, eax
jne 0x404c80
mov eax, 0xffffffff
jmp 0x404d39
mov ebp, 0xffffffff
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jae 0x404d23
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebx
inc dword [esi + 0x18]
mov eax, dword [esi]
mov dword [edx], eax
xor eax, eax
jmp 0x404d39
mov ecx, esi
call fcn.00405910
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x2c]
je 0x404d41
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0040c9b0
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [esi + 0x20]
test edx, edx
je 0x404dd4
lea ecx, [edx - 1]
mov eax, ebx
not eax
mov dword [esp + 8], ecx
or eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 4], ecx
lea edi, [ebx + eax]
inc edi
jmp 0x404d74
inc edi
dec edx
je 0x404dde
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404de3
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
cmp dword [ecx + eax*4], ebx
jne 0x404d70
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 4], edx
call fcn.0040c9b0
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0xc]
jne 0x404d70
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.0040c9d0
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x404d70
jmp 0x404ce6
mov ebp, 0xffffffff
jmp 0x404ce6
mov ebp, 0xffffffff
mov esi, dword [esp + 0x28]
jmp 0x404ce6