Function at 0x10046860
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
push ebx
xor edx, edx
cmp dword [ebp + 0x14], 1
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 2
pop ebx
push 0x20
pop eax
cmove ebx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
cmove eax, dword [0x10668f9c]
mov dword [ebp + 0x10], eax
mov eax, dword [0x10669438]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x60], 1
mov dword [esp + 0x84], eax
test esi, esi
je 0x10046931
mov ecx, dword [esi + 4]
mov ebx, ecx
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100468f0
sub ebx, edx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
je 0x10046922
lea eax, [edx - 1]
add eax, ecx
cmp eax, ecx
jb 0x10046918
cmp byte [eax], 0x5c
je 0x1004691a
dec eax
jmp 0x1004690c
xor eax, eax
test eax, eax
jne 0x1037324f
push edx
push ecx
call sym.php5.dll_zend_str_tolower_dup
pop ecx
xor edx, edx
mov dword [esp + 0x18], eax
pop ecx
mov eax, edi
cmp dword [eax], edx
je 0x10046b6f
mov eax, dword [edi + 4]
mov dword [esp + 0x70], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], eax
mov eax, dword [edi]
mov ecx, 0x1053ac9c
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
test edx, edx
jne 0x10046b2a
mov ecx, 0x100
mov eax, dword [edi + 8]
mov dword [esp + 0x6c], ecx
test eax, eax
je 0x10046dcb
add eax, 0x14
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
cmove eax, dword [edi + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 8]
cmp byte [eax + 0x11], 0
jne 0x10373285
mov ebx, dword [edi + 0xc]
imul ebx, ebx, 0x14
cmp byte [ebx + eax + 0x13], 0
mov ebx, dword [esp + 0x10]
jne 0x10046e13
test dl, 2
jne 0x10046dde
test esi, esi
jne 0x10046b1b
cmp dword [esp + 0x2c], 0
je 0x1037348f
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100469dd
sub ecx, edx
push 1
lea eax, [ecx + 1]
push eax
push ecx
push dword [edi]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
call sym.php5.dll_zend_str_tolower_dup
pop ecx
pop ecx
push eax
call dword [sym.php5.dll_zend_new_interned_string]
mov edi, eax
add esp, 0xc
cmp edi, dword [0x106690bc]
jb 0x103732b9
cmp edi, dword [0x106690c0]
jae 0x103732b9
mov ecx, dword [edi - 0x24]
push 2
lea eax, [esp + 0x60]
push eax
push 0x94
lea eax, [esp + 0x6c]
push eax
push ecx
push dword [esp + 0x40]
push edi
push dword [ebp + 0x10]
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
cmp eax, 0xffffffff
je 0x103733e7
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x10046a86
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x10046a86
xor edx, edx
test ecx, ecx
je 0x10046a86
add eax, 0x10
cmp dword [eax - 8], 0
jne 0x10046c88
cmp byte [eax], 0
jne 0x10046c88
inc edx
add eax, 0x14
cmp edx, ecx
jb 0x10046a6b
test esi, esi
jne 0x10046abc
add dword [esp + 0xc], 0x14
inc dword [esp + 0x1c]
cmp edi, dword [0x106690bc]
jb 0x103733a2
cmp edi, dword [0x106690c0]
jae 0x103733a2
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
xor edx, edx
cmp dword [edi], edx
jmp 0x10046935
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10046d99
cmp eax, 0xb
je 0x10046b3d
cmp eax, 0xa
je 0x10046d06
cmp eax, 7
je 0x10046c94
cmp eax, 6
je 0x10046d3f
cmp eax, 0xc
je 0x10046ce5
cmp eax, 5
je 0x10046d60
xor ebx, ebx
mov dword [esp + 0x5c], ebx
test ebx, ebx
je 0x10046a8a
push dword [esp + 0x10]
push ebx
push esi
call sym.php5.dll_zend_check_magic_method_implementation
add esp, 0xc
jmp 0x10046a8a
test byte [esi + 0x14], 0x80
je 0x100469cd
jmp 0x103733ae
test edx, 0x700
je 0x10046e22
mov ecx, edx
jmp 0x1004696c
push 0xb
push str.__construct
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046dc2
push 0xb
push str.__debuginfo
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x38], ebx
jmp 0x10046b04
test esi, esi
je 0x10046c7f
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0xc0], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc8], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xb4], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xcc], eax
test edi, edi
je 0x10046c01
or dword [edi + 0xc], 0x2000
test byte [edi + 0xc], 1
jne 0x103734de
and dword [edi + 0xc], 0xfffeffff
test ecx, ecx
jne 0x10046e9e
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x10046e6d
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x10046ebb
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x1037354a
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x10046e46
mov edi, dword [esp + 0x50]
test edi, edi
jne 0x10373586
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x103735ac
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x103735d2
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x103735f8
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x1037361e
push dword [esp + 0x14]
call sym.php5.dll__efree
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [ebx + 0xc], 0x10000000
jmp 0x10046a86
push 7
push str.__clone
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046e64
push 7
push str.__unset
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046edb
push 7
push str.__isset
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x34], ebx
jmp 0x10046b04
push 0xc
push str.__callstatic
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x30], ebx
jmp 0x10046b04
push 0xa
push str.__destruct
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046e8a
push 0xa
push str.__tostring
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x3c], ebx
jmp 0x10046b04
push 6
push str.__call
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x48], ebx
jmp 0x10046b04
push 5
push str.__get
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046ee4
push 5
push str.__set
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10046afe
mov dword [esp + 0x44], ebx
jmp 0x10046b04
cmp dword [esp + 0x28], 0
jne 0x10046acc
lea eax, [ecx + 1]
push eax
push dword [esp + 0x18]
push edi
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10046dc2
mov eax, dword [esp + 0x24]
jmp 0x10046acc
mov dword [esp + 0x28], ebx
jmp 0x10046b04
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
jmp 0x100469bc
test esi, esi
je 0x10046ded
or dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x14]
test al, al
jns 0x10046e5c
test byte [edi + 0x10], 1
je 0x100469d8
test esi, esi
je 0x10046ed1
test byte [esi + 0x14], 0x80
jne 0x100469d8
mov ecx, 0x10546adc
jmp 0x10373294
or ecx, 0x1000000
mov dword [esp + 0x6c], ecx
jmp 0x100469bc
cmp edx, 0x40000
jne 0x1037325f
test esi, esi
jne 0x1037325f
mov edx, dword [edi + 0x10]
mov ecx, edx
or ecx, 0x100
jmp 0x1004696c
test byte [edi + 0xc], 1
jne 0x1037356d
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c39
or eax, 0x20
mov dword [esi + 0x14], eax
jmp 0x10046ded
mov dword [esp + 0x40], ebx
jmp 0x10046b04
or dword [edi + 0xc], 0x8000
test byte [edi + 0xc], 1
jne 0x10373518
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c15
cmp dword [esp + 0x74], 0
mov dword [esp + 0x20], ebx
je 0x10046b04
jmp 0x10373383
or dword [ecx + 0xc], 0x4000
test byte [ecx + 0xc], 1
jne 0x103734fb
and dword [ecx + 0xc], 0xfffeffff
jmp 0x10046c09
test byte [edi + 0xc], 1
jne 0x10373531
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c21
mov ecx, 0x1053ac9c
jmp 0x10373294
mov dword [esp + 0x58], ebx
jmp 0x10046b04
mov dword [esp + 0x50], ebx
jmp 0x10046b04
inc eax
sub ecx, eax
add edx, ecx
push edx
mov dword [esp + 0x1c], edx
push eax
jmp 0x10046924
mov eax, 0x10546adc
test esi, esi
cmove eax, ecx
je 0x1037326e
mov ecx, dword [esi + 4]
push dword [edi]
push eax
push ecx
push str.Invalid_access_level_for__s_s_s_____access_must_be_exactly_one_of_public__protected_or_private
push ebx
call sym.php5.dll_zend_error
add esp, 0x14
jmp 0x10046e36
or ecx, 0x4000000
mov dword [esp + 0x6c], ecx
jmp 0x100469a7
test esi, esi
je 0x1037329d
mov eax, dword [esi + 4]
jmp 0x103732a2
mov eax, 0x1053ac9c
push dword [edi]
push ecx
push eax
push str.Static_function__s_s_s___cannot_be_abstract
push ebx
call sym.php5.dll_zend_error
add esp, 0x14
jmp 0x100469d8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov edx, edi
mov ecx, 0x1505
cmp eax, 8
jb 0x10373335
mov ebx, dword [esp + 0x4c]
shr eax, 3
mov dword [esp + 0x54], eax
mov esi, 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 ebx, 8
dec esi
jne 0x103732da
mov esi, dword [ebp + 8]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
jmp dword [eax*4 + 0x10373643]
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 case.0x10373339.0
mov ecx, dword [esp + 0xc]
push dword [ecx]
push dword [esi + 4]
push str.Destructor__s::_s___cannot_take_arguments
push dword [esp + 0x1c]
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x10046b04
push edi
call sym.php5.dll__efree
pop ecx
jmp 0x10046aab
push dword [esp + 0x14]
call sym.php5.dll__efree
push dword [edi]
push dword [esi + 4]
push str.Interface__s_cannot_contain_non_abstract_method__s__
push ebx
call sym.php5.dll_zend_error
add esp, 0x14
jmp 0x103733df
push dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
push eax
push dword [ebp + 0xc]
call sym.php5.dll_zend_unregister_functions
add esp, 0xc
or eax, 0xffffffff
jmp 0x10046c81
cmp edi, dword [0x106690bc]
jb 0x103733f7
cmp edi, dword [0x106690c0]
jb 0x103733fe
push edi
call sym.php5.dll__efree
pop ecx
test esi, esi
je 0x1037340c
push dword [esp + 0x14]
call sym.php5.dll__efree
pop ecx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
jmp 0x10373486
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10373419
sub edi, edx
push edi
push ecx
call sym.php5.dll_zend_str_tolower_dup
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x68], eax
call sym.php5.dll_zend_hash_exists
add esp, 0x14
test eax, eax
je 0x1037346f
mov ecx, 0x10546adc
test esi, esi
mov eax, 0x1053ac9c
cmove ecx, eax
je 0x10373457
mov edx, dword [esi + 4]
jmp 0x10373459
mov edx, eax
mov eax, dword [esp + 0xc]
push dword [eax]
push ecx
push edx
push str.Function_registration_failed___duplicate_name____s_s_s
push ebx
call sym.php5.dll_zend_error
add esp, 0x14
push dword [esp + 0x54]
call sym.php5.dll__efree
mov eax, dword [esp + 0x10]
add eax, 0x14
pop ecx
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x10373414
jmp 0x103733cc
test esi, esi
je 0x103734a9
push dword [esp + 0x14]
call sym.php5.dll__efree
pop ecx
mov eax, 0x1053ac9c
mov ecx, 0x10546adc
jmp 0x103734b0
mov eax, 0x1053ac9c
mov ecx, eax
test esi, esi
je 0x103734b7
mov eax, dword [esi + 4]
push dword [edi]
push ecx
push eax
push str.Method__s_s_s___cannot_be_a_NULL_function
push ebx
call sym.php5.dll_zend_error
push dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
push eax
push dword [ebp + 0xc]
call sym.php5.dll_zend_unregister_functions
add esp, 0x20
jmp 0x103733df
push dword [edi + 4]
push dword [esi + 4]
push str.Constructor__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
mov ecx, dword [esp + 0x30]
add esp, 0x10
jmp 0x10046bfa
push dword [ecx + 4]
push dword [esi + 4]
push str.Destructor__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
mov ecx, dword [esp + 0x30]
add esp, 0x10
jmp 0x10046eaf
push dword [edi + 4]
push dword [esi + 4]
push str.Constructor__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x10046e7e
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x10046ec5
test byte [edi + 0xc], 1
jne 0x10373564
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___must_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
or dword [edi + 0xc], 1
jmp 0x10046c2d
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x10046e50
test byte [edi + 0xc], 1
je 0x103735a0
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c45
test byte [edi + 0xc], 1
je 0x103735c6
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c51
test byte [edi + 0xc], 1
je 0x103735ec
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c5d
test byte [edi + 0xc], 1
je 0x10373612
push dword [edi + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
and dword [edi + 0xc], 0xfffeffff
jmp 0x10046c69
test byte [eax + 0xc], 1
je 0x10046c75
push dword [eax + 4]
push dword [esi + 4]
push str.Method__s::_s___cannot_be_static
push ebx
call sym.php5.dll_zend_error
add esp, 0x10
jmp 0x10046c75