Function at 0x402ae0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, 0xffffffff
test ecx, ecx
je 0x402c5b
mov esi, edx
test edx, edx
je 0x402c5b
mov dword [esp], ecx
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x402c5b
push esi
call fcn.00408ec0
add esp, 4
test eax, eax
je 0x402b4a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402b51
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402b30
jmp 0x402b53
mov ebp, 0x1505
jmp 0x402b53
mov ebp, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov ecx, dword [esp]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x402bf1
mov eax, edi
or eax, 0xfffffffe
mov edx, edi
and edx, 0xfffffffe
lea ebx, [eax + edx]
inc ebx
and ebx, ebp
lea eax, [edi - 1]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov esi, ebx
not esi
inc ebx
jmp 0x402b95
dec esi
inc ebx
dec edi
je 0x402bf8
mov eax, dword [esp + 0xc]
or eax, esi
add eax, ebx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
cmp edx, 0xffffffff
je 0x402bfd
mov eax, dword [ecx + 8]
cmp dword [eax + edx*4], ebp
jne 0x402b90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x10], eax
push eax
call fcn.00408ec0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x402b90
push dword [esp + 8]
push dword [esp + 0x14]
push dword [esp + 0xc]
call fcn.00408ee0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402b90
mov eax, 0xffffffff
jmp 0x402c5b
mov eax, 0xffffffff
jmp 0x402c01
mov eax, 0xffffffff
mov ebx, dword [esp + 0x38]
mov edx, dword [ecx + 0x18]
cmp edx, dword [ecx + 0x1c]
jae 0x402c47
mov edi, dword [ecx + 0xc]
mov esi, ecx
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 4]
mov dword [edi + edx*4], ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
mov dword [ecx + edx*4], ebx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [ecx + edx*4], eax
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 [ebx], eax
xor eax, eax
jmp 0x402c5b
call fcn.00402d50
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 4]
je 0x402c63
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.00408ec0
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x402d29
mov eax, esi
or eax, 0xfffffffe
mov edx, esi
and edx, 0xfffffffe
add eax, edx
inc eax
and eax, ebp
lea edx, [esi - 1]
mov dword [esp + 8], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov edi, eax
not edi
mov dword [esp + 0x1c], eax
lea ebx, [eax + 1]
xor eax, eax
jmp 0x402cbe
mov eax, dword [esp + 0xc]
inc eax
dec edi
inc ebx
mov esi, dword [esp + 0x14]
dec esi
je 0x402d33
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
or esi, edi
lea eax, [ebx + esi]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + eax*4]
cmp edx, 0xffffffff
je 0x402d38
mov eax, dword [ecx + 8]
cmp dword [eax + edx*4], ebp
jne 0x402cb0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x20], eax
push eax
call fcn.00408ec0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x18]
jne 0x402cb0
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0xc]
call fcn.00408ee0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402cb0
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x1c]
add eax, esi
inc eax
jmp 0x402d38
mov eax, 0xffffffff
jmp 0x402c09
mov eax, 0xffffffff
mov ebx, dword [esp + 0x38]
jmp 0x402c09