Function at 0x1031bb80
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x118], ebp
jbe 0x1031be92
mov eax, dword [edi + 0x114]
push 0
mov eax, dword [eax + ebp*4]
add eax, 0x40
push eax
call sym.php5.dll_zend_hash_internal_pointer_reset_ex
pop ecx
pop ecx
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebp*4]
add eax, 0x40
push eax
call sym.php5.dll_zend_hash_get_current_data_ex
add esp, 0xc
test eax, eax
jne 0x1031be85
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
and eax, 0x700
cmp eax, 0x100
jne 0x1031bc05
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
jmp 0x1031bce9
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
call sym.php5.dll_zend_unmangle_property_name_ex
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x14], edx
mov ecx, edx
mov esi, 0x1505
cmp eax, 8
jb switch.0x1031bca0
mov ebx, eax
shr eax, 3
mov edx, eax
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 ebx, 8
dec edx
jne 0x1031bc46
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov eax, ebx
jmp dword [eax*4 + 0x1031be9c]
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
inc ecx
movsx eax, byte [ecx]
imul esi, esi, 0x21
add esi, eax
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x28]
push ebx
inc eax
push esi
push eax
lea ecx, [edi + 0x40]
push edx
push ecx
mov dword [esp + 0x34], eax
call sym.php5.dll_zend_hash_quick_find
mov ebx, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x1031bdc5
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
test ecx, 0x20000
je 0x1031bd46
push 2
push esi
push dword [esp + 0x28]
mov esi, dword [esp + 0x20]
lea eax, [edi + 0x40]
push esi
push eax
call sym.php5.dll_zend_hash_del_key_or_index
mov eax, dword [esp + 0x2c]
add esp, 0x14
or eax, 0x800
mov dword [esp + 0x18], eax
jmp 0x1031bdcd
mov eax, dword [esp + 0x18]
xor ecx, eax
test ecx, 0x701
jne 0x1031bd8c
mov ecx, dword [ebx + 0x10]
test al, 1
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebp*4]
je 0x1031bde2
mov eax, dword [eax + 0x6c]
push dword [eax + ecx*4]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edx + 0x10]
push dword [eax + ecx*4]
lea eax, [esp + 0x40]
push eax
call sym.php5.dll_compare_function
add esp, 0xc
cmp eax, 0xffffffff
je 0x1031bd8c
cmp dword [esp + 0x38], 0
je 0x1031bded
push dword [edi + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1c]
push ecx
push dword [eax + 4]
mov eax, dword [esp + 0x34]
mov edx, ebp
push dword [eax + 0x1c]
push esi
push dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.1031aa80
add esp, 0x10
push dword [eax + 4]
push str._s_and__s_define_the_same_property____s__in_the_composition_of__s._However__the_definition_differs_and_is_considered_incompatible._Class_was_composed
push 0x40
call sym.php5.dll_zend_error
add esp, 0x18
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x10]
test al, 1
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebp*4]
je 0x1031be2b
mov eax, dword [eax + 0x6c]
jmp 0x1031be2e
mov eax, dword [eax + 0x68]
push dword [eax + ecx*4]
mov eax, dword [edi + 0x68]
jmp 0x1031bd6d
push dword [edi + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1c]
push ecx
push dword [eax + 4]
mov eax, dword [esp + 0x34]
mov edx, ebp
push dword [eax + 0x1c]
push esi
push dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.1031aa80
add esp, 0x10
push dword [eax + 4]
push str._s_and__s_define_the_same_property____s__in_the_composition_of__s._This_might_be_incompatible__to_improve_maintainability_consider_using_accessor_methods_in_traits_instead._Class_was_composed
push 0x800
call sym.php5.dll_zend_error
add esp, 0x18
jmp 0x1031be6c
mov eax, dword [eax + 0x68]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x20], eax
inc dword [eax + 8]
cmp dword [ebx + 0x14], 0
je 0x1031be53
push dword [ebx + 0x18]
push dword [ebx + 0x14]
call sym.php5.dll__estrndup
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
jmp 0x1031be55
xor ecx, ecx
push dword [ebx + 0x18]
push ecx
push dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
push esi
push edi
call sym.php5.dll_zend_declare_property_ex
add esp, 0x1c
mov eax, dword [edi + 0x114]
push 0
mov eax, dword [eax + ebp*4]
add eax, 0x40
push eax
call sym.php5.dll_zend_hash_move_forward_ex
jmp 0x1031bbab
inc ebp
cmp ebp, dword [edi + 0x118]
jb 0x1031bb97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret