Function at 0x1001fc60
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
cmp dword [ebx], 1
push edi
mov dword [esp + 0x14], ebx
jne 0x1001fc7c
cmp byte [ebx + 0x14], 6
jne 0x10379808
mov ecx, dword [0x10668f98]
call fcn.10009fe0
mov edi, eax
push 0xfffffffffffffff0
mov byte [edi + 0x18], 0x53
mov byte [edi + 0x1b], 4
mov esi, dword [0x10668f98]
pop edx
mov eax, dword [esi + 0x34]
mov ecx, eax
shl ecx, 4
sub edx, ecx
inc eax
mov dword [esi + 0x34], eax
mov dword [edi + 0xc], edx
mov al, byte [ebx]
mov byte [edi + 0x19], al
cmp dword [ebx], 1
jne 0x1001fd77
mov ecx, dword [0x10668f98]
lea edx, [ebx + 8]
call fcn.10008bd0
cmp byte [edi + 0x19], 1
mov dword [edi + 4], eax
jne 0x1001fcfd
mov esi, eax
mov eax, dword [0x10668f98]
imul esi, esi, 0x18
add esi, dword [eax + 0x74]
mov edx, dword [esi]
cmp edx, dword [0x106690c0]
jae 0x1001fd7f
cmp edx, dword [0x106690bc]
jb 0x1001fd7f
mov ecx, dword [edx - 0x24]
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 0x1b]
mov byte [edi + 0x1a], 8
mov dword [edi + 0x10], 0x40000000
mov dword [esp + 0x18], eax
cmp eax, 1
je 0x1037985a
mov eax, dword [edi + 0xc]
and dword [esp + 0x30], 0
mov dword [esp + 0x20], eax
cmp dword [ebx], 1
jne 0x1001fd3a
lea eax, [ebx + 8]
cmp byte [eax + 0xc], 3
jbe 0x1001fd3a
push eax
call sym.php5.dll__zval_copy_ctor_func
pop ecx
push 0x53
push 0
mov edx, ebx
lea ecx, [esp + 0x40]
call fcn.10011790
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x44]
xor ecx, ecx
call fcn.10009050
mov eax, dword [0x10668f98]
add esp, 0xc
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
imul ecx, ecx, 0x1c
or byte [ecx + eax - 1], 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [ebx + 8]
jmp 0x1001fcc7
mov ebp, dword [esi + 4]
inc ebp
mov ecx, 0x1505
cmp ebp, 8
jb switch.0x1001fdec
mov eax, ebp
shr eax, 3
mov dword [esp + 0x10], eax
mov ebx, eax
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 1]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 2]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 3]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 4]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 5]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 6]
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx + 7]
imul ecx, ecx, 0x21
add ecx, eax
add edx, 8
sub ebp, 8
dec ebx
jne 0x1001fd98
mov ebx, dword [esp + 0x14]
jmp dword [ebp*4 + 0x1001fdf4]
lea eax, [ebx + 8]
push eax
call sym.php5.dll__convert_to_string
pop ecx
jmp 0x1001fc7c
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
inc edx
movsx eax, byte [edx]
imul ecx, ecx, 0x21
add ecx, eax
jmp 0x1001fcfa
mov esi, dword [edi + 0xc]
mov eax, dword [0x10668f98]
imul esi, esi, 0x18
add esi, dword [eax + 0x74]
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x1001fd25