Function at 0x402b30
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, 0xffffffff
test ecx, ecx
je 0x402d64
mov esi, edx
test edx, edx
je 0x402d64
mov dword [esp], ecx
cmp dword [esp + 0x30], 0
je 0x402d64
push esi
call fcn.00408c90
add esp, 4
test eax, eax
je 0x402b8a
xor edi, edi
mov ecx, 0x1505
movzx edx, byte [esi + edi]
test edx, edx
je 0x402b91
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402b70
jmp 0x402b93
mov ebp, 0x1505
jmp 0x402b93
mov ebp, ecx
mov dword [esp + 8], esi
mov edx, dword [esp]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x402c42
mov dword [esp + 4], eax
mov eax, esi
or eax, 0xfffffffe
mov ecx, esi
and ecx, 0xfffffffe
add eax, ecx
inc eax
and eax, ebp
mov dword [esp + 0x14], eax
lea eax, [esi - 1]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
xor ebx, ebx
jmp 0x402bdf
mov eax, ebx
xor eax, 1
and ebx, 1
lea ebx, [eax + ebx*2]
cmp ebx, esi
jae 0x402c42
mov eax, ebx
mov edi, dword [esp + 0x14]
and eax, edi
mov ecx, ebx
xor ecx, edi
lea edi, [ecx + eax*2]
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c47
mov ecx, dword [edx + 8]
cmp dword [ecx + eax*4], ebp
jne 0x402bd0
mov ecx, dword [edx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408c90
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402bd0
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408cb0
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402bd0
mov eax, 0xffffffff
jmp 0x402d64
mov edi, 0xffffffff
mov eax, dword [edx + 0x18]
cmp eax, dword [edx + 0x1c]
jb 0x402d26
mov ecx, edx
call fcn.00402d70
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402d64
push ecx
call fcn.00408c90
add esp, 4
mov dword [esp + 4], eax
mov edx, dword [esp]
mov ebx, dword [edx + 0x20]
test ebx, ebx
je 0x402d21
mov eax, ebx
or eax, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
add eax, ecx
inc eax
and eax, ebp
mov dword [esp + 0x14], eax
lea eax, [ebx - 1]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
xor esi, esi
jmp 0x402cbf
mov eax, esi
xor eax, 1
and esi, 1
lea esi, [eax + esi*2]
cmp esi, ebx
jae 0x402d21
mov eax, esi
mov edi, dword [esp + 0x14]
and eax, edi
mov ecx, esi
xor ecx, edi
lea edi, [ecx + eax*2]
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402d26
mov ecx, dword [edx + 8]
cmp dword [ecx + eax*4], ebp
jne 0x402cb0
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
push eax
call fcn.00408c90
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402cb0
push dword [esp + 4]
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.00408cb0
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402cb0
jmp 0x402d26
mov edi, 0xffffffff
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + edi*4], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x18]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret