Function at 0x1004b840
Capabilities:
Hash data using djb2

Disassembly:
cmp dword [esp + 0x14], 0
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
je 0x1004b98b
mov esi, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
and ecx, esi
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x1004b95b
cmp dword [edi], esi
jne 0x1004b953
cmp dword [edi + 4], ebp
jne 0x1004b953
cmp dword [edi + 4], 0
jne 0x1004b93b
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
jne 0x1004ba4c
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
test ecx, ecx
jne 0x1004b960
mov edx, dword [edi]
and edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x1004b968
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
test ecx, ecx
je 0x1004b931
mov dword [ecx + 0x10], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
test ecx, ecx
je 0x1004b936
mov dword [ecx + 0x14], eax
cmp dword [ebx + 0x10], edi
jne 0x1004b8df
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x20]
dec dword [ebx + 8]
test eax, eax
je 0x1004b8ef
push dword [edi + 8]
call eax
pop ecx
mov esi, dword [sym.imp.MSVCR110.dll_free]
lea eax, [edi + 0xc]
cmp dword [edi + 8], eax
jne 0x1004b973
cmp byte [ebx + 0x24], 0
jne 0x1004ba31
mov ecx, dword [0x10660270]
cmp dword [ecx], 0
je 0x1004ba53
mov edx, edi
call fcn.10039af0
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
test eax, eax
jne 0x1004ba59
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebx + 0x14], eax
jmp 0x1004b8c7
mov dword [ebx + 0x18], eax
jmp 0x1004b8d4
push ebp
push dword [esp + 0x1c]
push dword [edi + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1004b889
mov edi, dword [edi + 0x18]
jmp 0x1004b866
or eax, 0xffffffff
jmp 0x1004b92c
mov dword [ecx + 0x18], eax
jmp 0x1004b8af
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x1004b8ba
cmp byte [ebx + 0x24], 0
push dword [edi + 8]
jne 0x1004ba45
call sym.php5.dll__efree
pop ecx
jmp 0x1004b8fd
mov ecx, dword [esp + 0x14]
mov edi, ebp
mov esi, 0x1505
cmp ebp, 8
jb switch.0x1004b9f0
mov edx, ebp
shr edx, 3
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 1]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 2]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 3]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 4]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 5]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 6]
imul esi, esi, 0x21
add esi, eax
movsx eax, byte [ecx + 7]
imul esi, esi, 0x21
add esi, eax
add ecx, 8
sub edi, 8
dec edx
jne 0x1004b9a0
jmp dword [edi*4 + 0x1004ba60]
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
jmp case.0x1004b9f0.0
push edi
call esi
pop ecx
jmp 0x1004b91d
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
inc ecx
jmp case.0x1004b9f0.6
call esi
jmp 0x1004b985
call eax
jmp 0x1004b896
push edi
call dword [ecx + 8]
jmp 0x1004ba34
call eax
jmp 0x1004b92a