Function at 0x10221170
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.1020b450
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x1022118c
mov dword [ebx], edi
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [0x10660848]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10221356
mov eax, dword [esp + 0x30]
cmp eax, dword [0x1066083c]
jne 0x10221352
mov edx, dword [0x10660838]
mov esi, eax
mov ecx, ebp
sub esi, 4
jb 0x102211d7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x102211dc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x102211c6
cmp esi, 0xfffffffc
je 0x10221219
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10221352
cmp esi, 0xfffffffd
je 0x10221219
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10221352
cmp esi, 0xfffffffe
je 0x10221219
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10221352
cmp esi, 0xffffffff
je 0x10221219
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10221352
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10221317
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10221317
mov edi, dword [0x10660848]
test byte [edi + 0xd4], 1
jne 0x102212b3
cmp esi, dword [edi + 0x14]
jne 0x10221325
mov ecx, dword [edi + 0x10]
mov edx, eax
sub esi, 4
jb 0x10221271
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10221276
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10221260
cmp esi, 0xfffffffc
je 0x102212af
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10221321
cmp esi, 0xfffffffd
je 0x102212af
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10221321
cmp esi, 0xfffffffe
je 0x102212af
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10221321
cmp esi, 0xffffffff
je 0x102212af
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10221321
mov esi, dword [esp + 0x38]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x102212ee
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [edi + 0x10]
push 0x10660774
call sym.php5.dll_zend_hash_find
add esp, 0x10
test eax, eax
jne 0x102212ee
push eax
push eax
mov eax, dword [0x10660848]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10660774
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
mov edi, dword [esp + 0x34]
push 2
push 0
push 4
push dword [esp + 0x34]
push esi
push edi
push 0x10660774
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
mov dword [0x10660840], edi
mov dword [0x10660844], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x34]
test ebx, ebx
je 0x1022133d
push ebp
push dword [edi]
push eax
push str.alias___s__is_already_used_for_archive___s__cannot_be_overloaded_with___s_
push 0
push ebx
call sym.php5.dll_spprintf
add esp, 0x18
mov eax, dword [esp + 0x28]
mov dword [eax], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
test ebx, ebx
je 0x102215f1
test ebp, ebp
je 0x102215f1
test eax, eax
je 0x102213e8
cmp ebp, dword [0x10660844]
jne 0x102213e8
mov edx, dword [0x10660840]
mov esi, ebp
mov ecx, ebx
sub esi, 4
jb 0x102213a1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x102213a6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10221390
cmp esi, 0xfffffffc
je 0x102213d3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x102213e8
cmp esi, 0xfffffffd
je 0x102213d3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x102213e8
cmp esi, 0xfffffffe
je 0x102213d3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x102213e8
cmp esi, 0xffffffff
je 0x102213d3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x102213e8
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x10221533
mov edi, 0x1505
mov eax, ebp
mov esi, ebx
mov dword [esp + 0x1c], edi
cmp ebp, 8
jb switch.0x10221487
mov ebx, ebp
shr ebx, 3
movsx eax, byte [esi]
mov ecx, edi
shl ecx, 5
add ecx, edi
add ecx, eax
movsx eax, byte [esi + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [esi + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [esi + 7]
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, eax
add esi, 8
sub ebp, 8
dec ebx
jne 0x10221403
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
jmp dword [eax*4 + 0x10221bec]
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
inc esi
mov eax, edi
shl edi, 5
add edi, eax
movsx eax, byte [esi]
add edi, eax
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x10]
push eax
push edi
push ebp
push ebx
push 0x10660774
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
je 0x1022152f
cmp dword [0x106607a8], 0
je 0x102215f1
lea eax, [esp + 0x10]
push eax
push edi
push ebp
push ebx
push 0x10660880
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
jne 0x102215f1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x102215b8
mov esi, dword [ecx]
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 4]
jne 0x1022155f
push edx
push dword [esi]
push eax
call dword [sym.imp.MSVCR110.dll_strncmp]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x102215b8
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x10221581
push eax
mov eax, dword [ecx]
push dword [eax]
push ebx
push str.alias___s__is_already_used_for_archive___s__cannot_be_overloaded_with___s_
push 0
push esi
call sym.php5.dll_spprintf
mov ecx, dword [esp + 0x28]
add esp, 0x18
push ebp
push ebx
push dword [ecx]
call fcn.10221120
add esp, 0xc
test eax, eax
jne 0x10221347
test esi, esi
je 0x10221347
push dword [esi]
call sym.php5.dll__efree
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret
mov eax, dword [ecx]
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], eax
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
mov dword [0x10660848], ecx
mov eax, dword [ecx]
mov dword [0x10660838], eax
mov eax, dword [ecx + 4]
pop esi
mov dword [0x10660844], ebp
pop ebp
mov dword [0x1066083c], eax
mov dword [0x10660840], ebx
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edx, ecx
mov esi, 0x1505
cmp ecx, 8
jb switch.0x10221694
mov ebp, ecx
shr ebp, 3
mov edi, ecx
movsx eax, byte [ebx]
mov ecx, esi
shl ecx, 5
add ecx, esi
add ecx, eax
movsx eax, byte [ebx + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 7]
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, eax
add ebx, 8
sub edi, 8
dec ebp
jne 0x10221610
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp dword [edx*4 + 0x10221c0c]
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x10221347
test ecx, ecx
je 0x10221347
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push ebx
push 0x10660748
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
jne 0x10221888
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov esi, dword [esp + 0x34]
mov dword [edx], eax
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
test esi, esi
je 0x10221820
test ebp, ebp
je 0x10221820
test byte [ebx + 0xd4], 1
jne 0x102217c7
cmp ebp, dword [ebx + 0x14]
jne 0x10221853
mov ecx, dword [ebx + 0x10]
mov edx, esi
mov esi, ebp
sub esi, 4
jb 0x10221781
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10221786
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10221770
cmp esi, 0xfffffffc
je 0x102217c3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1022184f
cmp esi, 0xfffffffd
je 0x102217c3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1022184f
cmp esi, 0xfffffffe
je 0x102217c3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1022184f
cmp esi, 0xffffffff
je 0x102217c3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1022184f
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10221801
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [ebx + 0x10]
push 0x10660774
call sym.php5.dll_zend_hash_find
add esp, 0x10
test eax, eax
jne 0x10221801
push eax
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10660774
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
push 2
push 0
push 4
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push esi
push 0x10660774
call sym.php5.dll__zend_hash_quick_add_or_update
mov ebx, dword [esp + 0x34]
add esp, 0x20
mov dword [0x10660848], ebx
mov eax, dword [ebx]
mov dword [0x10660838], eax
mov eax, dword [ebx + 4]
mov dword [0x1066083c], eax
mov eax, dword [ebx + 0x10]
pop edi
mov dword [0x10660840], eax
mov eax, dword [ebx + 0x14]
pop esi
pop ebp
mov dword [0x10660844], eax
xor eax, eax
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10221347
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push dword [eax]
push esi
push str.alias___s__is_already_used_for_archive___s__cannot_be_overloaded_with___s_
push 0
push ecx
call sym.php5.dll_spprintf
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [0x106607a8], 0
je 0x10221978
lea eax, [esp + 0x10]
push eax
push esi
push dword [esp + 0x38]
push ebx
push 0x106608c0
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
jne 0x10221978
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov dword [esp + 0x14], edi
test byte [edi + 0xd4], 1
jne 0x10221949
mov esi, dword [esp + 0x34]
test esi, esi
je 0x10221949
test ebp, ebp
je 0x10221949
cmp ebp, dword [edi + 0x14]
jne 0x10221937
mov ecx, dword [edi + 0x10]
mov edx, esi
sub ebp, 4
jb 0x10221901
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10221906
add ecx, 4
add edx, 4
sub ebp, 4
jae 0x102218f0
cmp ebp, 0xfffffffc
je 0x10221949
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10221933
cmp ebp, 0xfffffffd
je 0x10221949
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10221933
cmp ebp, 0xfffffffe
je 0x10221949
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10221933
cmp ebp, 0xffffffff
je 0x10221949
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10221949
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10221347
push ebx
jmp 0x10221868
mov dword [0x10660848], edi
mov eax, dword [edi]
mov dword [0x10660838], eax
mov eax, dword [edi + 4]
mov dword [0x1066083c], eax
mov eax, dword [edi + 0x10]
mov dword [0x10660840], eax
mov eax, dword [edi + 0x14]
pop edi
pop esi
pop ebp
mov dword [0x10660844], eax
xor eax, eax
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push dword [esp + 0x38]
push ebx
push 0x10660774
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
jne 0x102219d3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [eax], ecx
mov dword [0x10660848], ecx
mov eax, dword [ecx]
mov dword [0x10660838], eax
mov eax, dword [ecx + 4]
mov dword [0x1066083c], eax
mov eax, dword [ecx + 0x10]
pop edi
mov dword [0x10660840], eax
mov eax, dword [ecx + 0x14]
pop esi
pop ebp
mov dword [0x10660844], eax
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp dword [0x106607a8], 0
je 0x102219f8
lea eax, [esp + 0x10]
push eax
push esi
push dword [esp + 0x38]
push ebx
push 0x10660880
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
je 0x10221994
push 0
push ebx
call sym.php5.dll_expand_filepath
mov edx, eax
add esp, 8
mov dword [esp + 0x3c], edx
test edx, edx
je 0x10221347
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10221a16
sub ecx, esi
mov dword [esp + 0x20], ecx
mov eax, edx
test ecx, ecx
jle 0x10221a42
xor edx, edx
jmp 0x10221a30
cmp byte [eax], 0x5c
jne 0x10221a38
mov byte [eax], 0x2f
inc edx
inc eax
cmp edx, ecx
jl 0x10221a30
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0x18], eax
mov ebx, edx
mov esi, 0x1505
cmp ecx, 8
jb switch.0x10221ae8
mov ebp, ecx
shr ebp, 3
mov edi, ecx
nop
movsx eax, byte [ebx]
mov ecx, esi
shl ecx, 5
add ecx, esi
add ecx, eax
movsx eax, byte [ebx + 1]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 2]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 3]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 4]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 5]
mov edx, ecx
shl edx, 5
add edx, ecx
add edx, eax
movsx eax, byte [ebx + 6]
mov ecx, edx
shl ecx, 5
add ecx, edx
add ecx, eax
movsx eax, byte [ebx + 7]
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, eax
add ebx, 8
sub edi, 8
dec ebp
jne 0x10221a60
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp dword [eax*4 + 0x10221c2c]
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
inc ebx
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
add esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
push 0x10660748
call sym.php5.dll_zend_hash_quick_find
mov ebx, dword [esp + 0x50]
add esp, 0x14
test eax, eax
je 0x10221b9f
cmp dword [0x106607a8], 0
je 0x10221b8b
lea eax, [esp + 0x10]
push eax
push esi
push dword [esp + 0x28]
push ebx
push 0x106608c0
call sym.php5.dll_zend_hash_quick_find
add esp, 0x14
test eax, eax
je 0x10221b9f
push ebx
call sym.php5.dll__efree
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov esi, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
test esi, esi
je 0x10221bd8
test ebp, ebp
je 0x10221bd8
push 2
push 0
push 4
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push esi
push 0x10660774
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
push ebx
call sym.php5.dll__efree
mov ecx, dword [esp + 0x18]
add esp, 4
jmp 0x102219a4