Function at 0x402ac0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x402bc6
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
test edx, edx
je 0x402bbf
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402bbf
push esi
call fcn.00408b90
add esp, 4
test eax, eax
je 0x402b1a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402b21
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402b00
jmp 0x402b23
mov ebp, 0x1505
jmp 0x402b23
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov edi, dword [ecx + 0x20]
mov esi, edi
mov edx, ebp
not edx
sub esi, 1
mov dword [esp + 0xc], edx
jae 0x402bc7
mov esi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402b84
call fcn.00402cf0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402bbf
push ecx
call fcn.00408b90
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov edi, dword [ecx + 0x20]
mov eax, edi
sub eax, 1
jae 0x402c52
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov edi, dword [esp + 8]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + esi*4], edx
mov eax, dword [ecx + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [edi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
or esi, edx
mov edx, edi
not edx
and edx, 1
mov eax, edi
and eax, 0xfffffffe
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
lea ebx, [esi + ebp]
inc ebx
jmp 0x402bf8
inc ebx
dec edi
je 0x402b40
mov esi, ebx
and esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x402b45
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402bf0
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + eax*4]
push esi
call fcn.00408b90
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402bf0
push dword [esp + 4]
push esi
push dword [esp + 0x10]
call fcn.00408bb0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402bf0
mov eax, 0xffffffff
jmp 0x402bbf
or eax, dword [esp + 0xc]
mov edx, edi
not edx
and edx, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, edx
mov dword [esp + 0x14], esi
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
lea ebx, [eax + ebp]
inc ebx
jmp 0x402c88
inc ebx
dec edi
je 0x402b7f
mov esi, ebx
and esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x402b84
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402c80
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408b90
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402c80
push dword [esp + 4]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408bb0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402c80
jmp 0x402b84