Function at 0x10041ce0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 4], 0
je 0x10041dc6
mov ecx, dword [esp + 0x20]
mov esi, dword [edi + 0x14]
xor ebx, ebx
test ecx, ecx
jne 0x10397d30
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x24], eax
cmp ebx, eax
jb 0x10041df4
cmp dword [esp + 0x28], 0
je 0x10041da8
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jbe 0x10041da1
cmp byte [edi + 0x24], 0
push 0x24
jne 0x10397d96
call sym.php5.dll__emalloc
pop ecx
mov ebx, eax
xor eax, eax
cmp dword [esp + 0x18], 4
mov dword [ebx + 0x20], eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
jne 0x10397dc6
mov eax, dword [esp + 0x28]
lea ecx, [ebx + 0xc]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [ebx + 8], ecx
test esi, esi
je 0x10041db7
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x10041dbc
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10397e02
mov dword [edi + 0x14], ebx
test esi, esi
je 0x10041dc1
mov dword [esi + 0x14], ebx
inc dword [edi + 8]
cmp dword [esp + 0x1c], 0
je 0x10041d9a
push dword [ebx + 8]
call dword [esp + 0x20]
pop ecx
inc ebp
cmp ebp, dword [esp + 0x2c]
jb 0x10041d28
mov eax, dword [edi + 8]
cmp eax, dword [edi]
ja 0x10041deb
push 1
push edi
call sym.php5.dll_zend_hash_reindex
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
jmp 0x10041d69
mov eax, dword [edi + 0x18]
jmp 0x10041d76
mov dword [edi + 0x18], ebx
jmp 0x10041d88
cmp byte [edi + 0x24], 0
jne 0x10397d0c
push 4
push dword [edi]
call sym.php5.dll__ecalloc
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [edi]
dec eax
mov dword [edi + 0x1c], ebx
mov dword [edi + 4], eax
jmp 0x10041cf2
mov ecx, edi
call fcn.100341c0
jmp 0x10041da8
mov ebp, dword [esp + 0x30]
test esi, esi
je 0x10041d15
test ebp, ebp
jne 0x10397d45
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [sym.php5.dll_zend_block_interruptions]
test eax, eax
jne 0x10041eec
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
test ecx, ecx
jne 0x10041ee4
mov edx, dword [esi]
and edx, dword [edi + 4]
mov ecx, dword [edi + 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x10041ec2
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ecx, ecx
je 0x10041ed5
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
test ecx, ecx
jne 0x10041eb6
mov dword [edi + 0x18], eax
cmp dword [edi + 0x10], esi
je 0x10041ecd
mov eax, dword [edi + 0x20]
dec dword [edi + 8]
test eax, eax
je 0x10041e73
push dword [esi + 8]
call eax
pop ecx
lea eax, [esi + 0xc]
cmp dword [esi + 8], eax
je 0x10041e8b
cmp byte [edi + 0x24], 0
push dword [esi + 8]
je 0x10041edd
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
cmp byte [edi + 0x24], 0
push esi
je 0x10041ebb
call dword [sym.imp.MSVCR110.dll_free]
mov eax, dword [sym.php5.dll_zend_unblock_interruptions]
pop ecx
test eax, eax
jne 0x10041ef3
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, dword [esp + 0x24]
jb 0x10041df8
jmp 0x10041d15
mov dword [ecx + 0x14], eax
jmp 0x10041e5e
call sym.php5.dll__efree
jmp 0x10041e98
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x10041e40
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
jmp 0x10041e63
mov dword [edi + 0x14], eax
jmp 0x10041e51
call sym.php5.dll__efree
jmp 0x10041e8a
mov dword [ecx + 0x18], eax
jmp 0x10041e35
call eax
jmp 0x10041e1c
call eax
jmp 0x10041ea2
mov esi, dword [edi]
push 0
push 4
push esi
call sym.php5.dll__safe_malloc
mov ecx, esi
shl ecx, 2
push ecx
mov ebx, eax
push 0
push ebx
call sub.MSVCR110.dll_memset
add esp, 0x18
jmp 0x10041ddd
test esi, esi
je 0x10041d03
mov esi, dword [esi + 0x10]
inc ebx
cmp ebx, ecx
jb 0x10397d30
jmp 0x10041d03
cmp dword [esi + 4], 0
lea eax, [esp + 0x14]
jne 0x10397d64
push 4
push eax
push 4
push dword [esi + 8]
push 0
push ebp
call sym.php5.dll__zend_hash_index_update_or_next_insert
add esp, 0x18
jmp 0x10397d7d
push 1
push eax
push 4
push dword [esi + 8]
push dword [esi]
push dword [esi + 4]
push dword [esi + 0x20]
push ebp
call sym.php5.dll__zend_hash_quick_add_or_update
add esp, 0x20
cmp dword [esp + 0x1c], 0
je 0x10041e08
push dword [esp + 0x14]
call dword [esp + 0x20]
pop ecx
jmp 0x10041e08
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10041d3c
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR110.dll_exit]
push dword [esp + 0x18]
cmp byte [edi + 0x24], al
je 0x10397ddc
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
test eax, eax
jne 0x10397de2
jmp 0x10397da7
call sym.php5.dll__emalloc
pop ecx
push dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 8], eax
push dword [ecx + ebp*4]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
and dword [ebx + 0xc], 0
jmp 0x10041d62
test esi, esi
je 0x10397e0b
mov eax, dword [esi + 0x14]
jmp 0x10397e0e
mov eax, dword [edi + 0x18]
mov dword [eax + 0x10], ebx
jmp 0x10041d81