Function at 0x402be0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, 0xffffffff
test ecx, ecx
je 0x402d3b
mov ebx, edx
test edx, edx
je 0x402d3b
cmp dword [esp + 0x30], 0
je 0x402d3b
mov edi, ecx
push ebx
call fcn.00408e90
add esp, 4
mov dword [esp + 4], eax
mov ebp, 0x1505
test eax, eax
je 0x402c4f
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + eax]
test ecx, ecx
je 0x402c4f
mov edx, ebp
shl edx, 5
mov esi, edx
xor esi, ebp
and edx, ebp
add esi, ecx
lea ebp, [esi + edx*2]
inc eax
cmp dword [esp + 4], eax
jne 0x402c30
mov dword [esp + 8], ebx
mov esi, dword [edi + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
mov dword [esp], edi
jae 0x402cbe
mov edi, 0xffffffff
mov esi, dword [esp]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jae 0x402d25
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 8]
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov dword [eax + edi*4], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
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], edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebp
inc dword [esi + 0x18]
mov eax, dword [esi]
mov dword [edx], eax
xor eax, eax
jmp 0x402d3b
and ebx, ebp
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
jmp 0x402cd4
inc ebx
dec esi
je 0x402c67
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c6c
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
cmp dword [ecx + eax*4], ebp
jne 0x402cd0
mov ecx, dword [esp]
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408e90
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402cd0
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408eb0
add esp, 0xc
test eax, eax
jne 0x402cd0
mov eax, 0xffffffff
jmp 0x402d3b
mov ecx, esi
call fcn.00402df0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
je 0x402d43
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.00408e90
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x20]
lea ebx, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x402d6b
mov edi, 0xffffffff
jmp 0x402c7b
and ebx, ebp
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
mov esi, dword [esp]
jmp 0x402d84
inc ebx
dec edx
je 0x402de0
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402de5
mov ecx, dword [esi + 8]
cmp dword [ecx + eax*4], ebp
jne 0x402d80
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
push eax
mov dword [esp + 8], edx
call fcn.00408e90
mov edx, dword [esp + 8]
add esp, 4
cmp eax, dword [esp + 0x14]
jne 0x402d80
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.00408eb0
mov edx, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x402d80
jmp 0x402c7b
mov edi, 0xffffffff
mov esi, dword [esp]
jmp 0x402c7b