Function at 0x402430
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x402534
mov esi, edx
test edx, edx
je 0x402534
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402534
push esi
call fcn.00408ad0
add esp, 4
test eax, eax
je 0x402494
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x40249b
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, ebp
cmp edi, eax
jb 0x402470
jmp 0x40249d
mov ebp, 0x1505
jmp 0x40249d
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov ebx, dword [ecx + 0x20]
mov esi, ebx
sub esi, 1
jae 0x40253c
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4024f6
call fcn.00402650
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402534
push ecx
call fcn.00408ad0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov ebx, dword [ecx + 0x20]
mov esi, ebx
sub esi, 1
jae 0x4025c2
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 edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x2c]
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, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and esi, ebp
mov eax, ebx
xor eax, 0xfffffffe
mov edx, ebx
and edx, 0xfffffffe
lea eax, [eax + edx*2]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402568
inc esi
dec ebx
je 0x4024b2
mov edi, esi
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4024b7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402560
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408ad0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402560
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408af0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402560
mov eax, 0xffffffff
jmp 0x402534
and esi, ebp
mov eax, ebx
xor eax, 0xfffffffe
mov edx, ebx
and edx, 0xfffffffe
lea eax, [eax + edx*2]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4025e8
inc esi
dec ebx
je 0x4024f1
mov edi, esi
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4024f6
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4025e0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00408ad0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4025e0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.00408af0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4025e0
jmp 0x4024f6