Function at 0x402c00
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x402cfe
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, edx
test edx, edx
je 0x402cf7
mov dword [esp], ecx
cmp dword [esp + 0x30], 0
je 0x402cf7
push esi
call fcn.00408fd0
add esp, 4
test eax, eax
je 0x402c5a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402c61
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402c40
jmp 0x402c63
mov ebp, 0x1505
jmp 0x402c63
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
mov edi, esi
sub edi, 1
jae 0x402cff
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402cbc
call fcn.00402e50
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402cf7
push ecx
call fcn.00408fd0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
mov edi, esi
sub edi, 1
jae 0x402da0
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], edi
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 [esi], eax
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and edi, ebp
mov eax, esi
or eax, 1
mov edx, esi
or edx, 0xfffffffe
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], edi
jmp 0x402d3d
inc ebx
cmp esi, ebx
mov edi, dword [esp + 0xc]
je 0x402c78
mov eax, ebx
and eax, edi
mov edx, ebx
xor edx, edi
lea edi, [edx + eax*2]
and edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c7d
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402d30
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408fd0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402d30
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408ff0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402d30
mov eax, 0xffffffff
jmp 0x402cf7
and edi, ebp
mov eax, esi
or eax, 1
mov edx, esi
or edx, 0xfffffffe
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], edi
jmp 0x402ddd
inc ebx
cmp esi, ebx
mov edi, dword [esp + 0xc]
je 0x402cb7
mov eax, ebx
and eax, edi
mov edx, ebx
xor edx, edi
lea edi, [edx + eax*2]
and edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402cbc
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402dd0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
push eax
call fcn.00408fd0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402dd0
push dword [esp + 4]
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.00408ff0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402dd0
jmp 0x402cbc