Function at 0x403090
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x4031a9
test edx, edx
je 0x4031a9
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp], edx
cmp dword [esp + 0x34], 0
je 0x4031a2
mov edi, ecx
mov ebx, dword [esp]
push ebx
call fcn.00409070
add esp, 4
mov dword [esp + 4], eax
mov ebp, 0x1505
test eax, eax
je 0x4030ff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + eax]
test ecx, ecx
je 0x4030ff
mov edx, ebp
shl edx, 5
mov esi, edx
and esi, ebp
xor edx, ebp
add edx, ecx
lea ebp, [edx + esi*2]
inc eax
cmp dword [esp + 4], eax
jne 0x4030e0
mov eax, dword [edi + 0x20]
lea esi, [eax - 1]
mov dword [esp + 0xc], eax
sub eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jae 0x4031aa
mov edi, 0xffffffff
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
jb 0x403168
mov ecx, ebx
call fcn.004032b0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x4031a2
push dword [esp]
call fcn.00409070
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
lea edx, [eax - 1]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [esp + 4], eax
jae 0x40322e
mov edi, 0xffffffff
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp]
mov dword [eax + ecx*4], edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov dword [eax + edi*4], ecx
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], edx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [eax + ecx*4], edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x18]
mov dword [eax + ecx*4], ebp
inc dword [ebx + 0x18]
mov eax, dword [ebx]
mov dword [edx], eax
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
and esi, ebp
mov eax, dword [edi + 4]
mov dword [esp + 8], eax
xor ebx, ebx
jmp 0x4031cb
inc ebx
cmp dword [esp + 0xc], ebx
je 0x40311a
mov eax, ebx
and eax, esi
mov ecx, ebx
xor ecx, esi
lea edi, [ecx + eax*2]
and edi, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40311f
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
cmp dword [ecx + eax*4], ebp
jne 0x4031c0
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00409070
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4031c0
push dword [esp + 4]
push edi
push dword [esp + 8]
call fcn.00409090
add esp, 0xc
test eax, eax
jne 0x4031c0
mov eax, 0xffffffff
jmp 0x4031a2
and edx, ebp
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
xor esi, esi
mov dword [esp + 0x18], edx
jmp 0x40324b
inc esi
cmp dword [esp + 0x10], esi
je 0x403163
mov eax, esi
and eax, edx
mov ecx, esi
xor ecx, edx
lea edi, [ecx + eax*2]
and edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x403168
mov ecx, dword [ebx + 8]
cmp dword [ecx + eax*4], ebp
jne 0x403240
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x1c], eax
push eax
call fcn.00409070
mov edx, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x403240
push dword [esp + 8]
push dword [esp + 0x20]
push dword [esp + 8]
call fcn.00409090
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x403240
jmp 0x403168