Function at 0x10228cd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov eax, dword [esp + 0xe0]
push esi
mov esi, dword [esp + 0xf0]
mov dword [esp + 8], eax
mov ax, word [0x105020f4]
xorps xmm0, xmm0
push edi
mov edi, dword [esp + 0xec]
mov word [esp + 0xd8], ax
mov al, byte [0x105020f6]
movq qword [esp + 0x18], xmm0
movq xmm0, qword [str.__HALT_COMPILER___]
push 0x68
mov byte [esp + 0xde], al
movq qword [esp + 0xcc], xmm0
movq xmm0, qword [0x105020ec]
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x20], 0
movq qword [esp + 0xdc], xmm0
mov dword [esp + 0x50], 0
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x44]
push 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], 0x1b6
call dword [sym.imp.MSVCR110.dll__time32]
or dword [esp + 0xbc], 0x82
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x7c], 2
mov ecx, dword [eax + 0xd4]
add esp, 0x10
test ecx, 0x100
je 0x10228dde
test esi, esi
je 0x102298f1
push dword [eax]
push str.internal_error:_attempt_to_flush_cached_zip_based_phar___s_
push 0
push esi
call sym.php5.dll_spprintf
add esp, 0x10
jmp 0x102298f1
push ebx
push ebp
test cl, cl
js 0x102290e1
test cl, 1
jne 0x10228ea1
cmp dword [eax + 0x14], 0
je 0x10228ea1
push 0
call sym.php5.dll__php_stream_fopen_tmpfile
mov ecx, eax
add esp, 4
mov dword [esp + 0x84], ecx
test ecx, ecx
jne 0x10228e27
push str.phar_error:_unable_to_create_temporary_file
push 0
push esi
call sym.php5.dll_spprintf
add esp, 0xc
jmp 0x102298ef
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x14]
push ebx
push dword [eax + 0x10]
push ecx
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp ebx, eax
jne 0x10228e87
push 0xf
push str..phar_alias.txt
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
call sym.php5.dll__estrndup
push 1
push 0
push 0x6c
lea ecx, [esp + 0x60]
push ecx
push 0xf
push eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
add eax, 0x2c
push eax
mov dword [esp + 0x90], 0xf
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x24
test eax, eax
je 0x10228eb8
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_set_alias_in_zip_based_phar___s_
push 0
jmp 0x102298e6
push 0
push 0
push 0xf
add eax, 0x2c
push str..phar_alias.txt
push eax
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x10228ee3
push esi
push ecx
push dword [eax + 0x10]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x24]
push eax
call fcn.10221170
add esp, 0x18
cmp eax, 0xffffffff
je 0x102298ef
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xf8]
test eax, eax
je 0x1022914e
test ebx, ebx
jne 0x1022914e
test edi, edi
jns 0x10228f98
call sym.php5.dll_php_file_le_pstream
push eax
call sym.php5.dll_php_file_le_stream
push eax
push 2
push ebx
push str.stream
push 0xffffffffffffffff
push dword [esp + 0x2c]
call sym.php5.dll_zend_fetch_resource
add esp, 0x1c
test eax, eax
jne 0x10228f45
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_access_resource_to_copy_stub_to_new_zip_based_phar___s_
push ebx
jmp 0x102298e6
cmp edi, 0xffffffff
jne 0x10228f4e
or edi, edi
jmp 0x10228f50
neg edi
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], 0
call sym.php5.dll__php_stream_copy_to_mem
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10228f7e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10228f7e
mov ebx, 1
jmp 0x10228f9a
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_read_resource_to_copy_stub_to_new_zip_based_phar___s_
push 0
jmp 0x102298e6
xor ebx, ebx
push edi
push eax
call sym.php5.dll__estrndup
push 0x12
mov ebp, eax
push edi
lea eax, [esp + 0xe0]
push eax
push ebp
call sym.php5.dll_php_stristr
add esp, 0x18
mov edi, eax
push ebp
test edi, edi
jne 0x10228ff8
call sym.php5.dll__efree
add esp, 4
test esi, esi
je 0x10228fdf
mov eax, dword [esp + 0x10]
push dword [eax]
push str.illegal_stub_for_zip_based_phar___s_
push edi
push esi
call sym.php5.dll_spprintf
add esp, 0x10
test ebx, ebx
je 0x102298ef
push dword [esp + 0x14]
call sym.php5.dll__efree
add esp, 4
jmp 0x102298ef
mov eax, dword [esp + 0x18]
sub eax, ebp
add edi, eax
call sym.php5.dll__efree
sub edi, dword [esp + 0x18]
push 0
add edi, 0x12
call sym.php5.dll__php_stream_fopen_tmpfile
mov ecx, eax
add esp, 8
mov dword [esp + 0x84], ecx
test ecx, ecx
je 0x10228e12
push edi
push dword [esp + 0x18]
lea eax, [edi + 5]
push ecx
mov dword [esp + 0x58], eax
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp edi, eax
jne 0x1022910e
push 5
push str.____r_n
push dword [esp + 0x8c]
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp eax, 5
jne 0x1022910e
push 0xe
push str..phar_stub.php
call sym.php5.dll__estrndup
push 1
push 0
push 0x6c
lea ecx, [esp + 0x60]
push ecx
push 0xe
push eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
add eax, 0x2c
push eax
mov dword [esp + 0x90], 0xe
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x24
test eax, eax
je 0x102290cd
test ebx, ebx
je 0x102290b3
push dword [esp + 0x14]
call sym.php5.dll__efree
add esp, 4
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_set_stub_in_zip_based_phar___s_
push 0
jmp 0x102298e6
test ebx, ebx
je 0x102290dd
push dword [esp + 0x14]
call sym.php5.dll__efree
add esp, 4
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0xb0]
test edi, edi
je 0x102292f9
test byte [eax + 0xd4], 8
jne 0x102292f9
xor ebx, ebx
push ebx
push ebx
push edi
call sym.php5.dll__php_stream_seek
add esp, 0xc
jmp 0x10229317
test esi, esi
je 0x10229128
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_create_stub_from_string_in_new_zip_based_phar___s_
push 0
push esi
call sym.php5.dll_spprintf
add esp, 0x10
test ebx, ebx
je 0x10229138
push dword [esp + 0x14]
call sym.php5.dll__efree
add esp, 4
push 3
push dword [esp + 0x88]
call sym.php5.dll__php_stream_free
add esp, 8
jmp 0x102298ef
push 0
call sym.php5.dll__php_stream_fopen_tmpfile
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
je 0x10228e12
push 0x3c
push 0x10509b58
push eax
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp eax, 0x3c
je 0x102291d2
push 3
push dword [esp + 0x88]
call sym.php5.dll__php_stream_free
add esp, 8
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push dword [eax]
test ecx, ecx
mov edx, str._new
mov eax, 0x10549470
cmove eax, edx
push eax
mov edx, str.create
mov eax, str.overwrite
cmove eax, edx
push eax
push str.unable_to__s_stub_in_szip_based_phar___s___failed
push 0
push esi
call sym.php5.dll_spprintf
add esp, 0x18
jmp 0x102298ef
push 0xe
push str..phar_stub.php
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x54], 0x3c
call sym.php5.dll__estrndup
add esp, 8
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 0xe
test ebx, ebx
jne 0x1022929f
mov eax, dword [esp + 0x10]
push 0xe
add eax, 0x2c
push str..phar_stub.php
push eax
call sym.php5.dll_zend_hash_exists
add esp, 0xc
test eax, eax
jne 0x10229280
push 2
push eax
push 0x6c
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x7c]
mov eax, dword [esp + 0x24]
push dword [esp + 0x84]
add eax, 0x2c
push eax
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
test eax, eax
je 0x102290dd
push 3
push dword [esp + 0x88]
call sym.php5.dll__php_stream_free
push dword [esp + 0x78]
call sym.php5.dll__efree
add esp, 0xc
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_create_stub_in_zip_based_phar___s_
push ebx
jmp 0x102298e6
push 3
push dword [esp + 0x88]
call sym.php5.dll__php_stream_free
push dword [esp + 0x78]
call sym.php5.dll__efree
add esp, 0xc
jmp 0x102290dd
push 1
push 0
push 0x6c
lea ecx, [esp + 0x58]
push ecx
push 0xe
push eax
mov eax, dword [esp + 0x28]
add eax, 0x2c
push eax
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
test eax, eax
je 0x102290dd
push 3
push dword [esp + 0x88]
call sym.php5.dll__php_stream_free
push dword [esp + 0x78]
call sym.php5.dll__efree
add esp, 0xc
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_overwrite_stub_in_zip_based_phar___s_
push 0
jmp 0x102298e6
push 0
push 0
push 0
push 0x1053acc4
push dword [eax]
call sym.php5.dll__php_stream_open_wrapper_ex
mov edi, eax
xor ebx, ebx
add esp, 0x14
test edi, edi
setne bl
push 0
mov dword [esp + 0x34], edi
call sym.php5.dll__php_stream_fopen_tmpfile
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x102298c3
push 0
call sym.php5.dll__php_stream_fopen_tmpfile
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x102298c3
push 4
xorps xmm0, xmm0
lea eax, [esp + 0xbc]
push 0x104f422c
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 1
movq qword [esp + 0xc4], xmm0
movq qword [esp + 0xcc], xmm0
mov dword [esp + 0xd4], 0
mov word [esp + 0xd8], 0
call dword [sym.imp.MSVCR110.dll_strncpy]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test byte [eax + 0xd4], 0x80
jne 0x102293bd
cmp dword [eax + 0xbc], 0
jne 0x102293c6
mov dword [eax + 0xbc], 2
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xbc], 0
je 0x102293f6
add eax, 0x2c
push eax
call sym.php5.dll_zend_hash_num_elements
inc eax
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0xc5], al
mov eax, dword [esp + 0x14]
add eax, 0x2c
push eax
mov byte [esp + 0xc8], cl
call sym.php5.dll_zend_hash_num_elements
inc eax
jmp 0x10229422
add eax, 0x2c
push eax
call sym.php5.dll_zend_hash_num_elements
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0xc5], al
mov eax, dword [esp + 0x14]
add eax, 0x2c
push eax
mov byte [esp + 0xc8], cl
call sym.php5.dll_zend_hash_num_elements
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0xcb], al
add esp, 8
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
add eax, 0x2c
push fcn.10229c00
push eax
mov byte [esp + 0xce], cl
call sym.php5.dll_zend_hash_apply_with_argument
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [ecx + 0xc8], 0
je 0x10229533
cmp dword [0x106618dc], 0
jne 0x1022948b
mov edx, dword [0x106618e4]
test edx, edx
je 0x1022948b
mov eax, dword [0x106618e0]
inc edx
mov dword [esp + 0x18], eax
mov dword [0x106618e4], edx
jmp 0x102294c5
push 0x28
call sym.php5.dll__emalloc
push 0
push 0
push 0xa
push eax
mov dword [esp + 0x2c], eax
call sym.php5.dll__zend_hash_init
mov ecx, dword [esp + 0x24]
add esp, 0x14
cmp dword [0x106618dc], 0
jne 0x102294c5
mov eax, dword [esp + 0x18]
mov dword [0x106618e0], eax
mov dword [0x106618e4], 1
lea eax, [esp + 0x18]
push eax
lea eax, [ecx + 0xc8]
push eax
lea eax, [esp + 0x24]
push eax
call sym.php5.dll_php_var_serialize
add esp, 0xc
cmp dword [0x106618dc], 0
jne 0x1022951a
mov eax, dword [0x106618e4]
test eax, eax
je 0x1022951a
dec eax
mov dword [0x106618e4], eax
jne 0x1022952f
push dword [0x106618e0]
call sym.php5.dll_zend_hash_destroy
push dword [0x106618e0]
call sym.php5.dll__efree
mov dword [0x106618e0], 0
jmp 0x1022952c
push dword [esp + 0x18]
call sym.php5.dll_zend_hash_destroy
push dword [esp + 0x1c]
call sym.php5.dll__efree
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10229567
test esi, esi
je 0x10229559
push eax
push dword [ecx]
push str.phar_zip_flush_of___s__failed:__s
push 0x1000
push esi
call sym.php5.dll_spprintf
mov eax, dword [esp + 0x54]
add esp, 0x14
push eax
call sym.php5.dll__efree
add esp, 4
jmp 0x1022986c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.1022a6c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1022986c
push dword [esp + 0x2c]
call sym.php5.dll__php_stream_tell
push dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
call sym.php5.dll__php_stream_tell
mov edx, eax
mov eax, dword [esp + 0x4c]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0xcf], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0xcc], al
mov byte [esp + 0xce], cl
mov ecx, eax
mov eax, edx
shr eax, 0x18
mov byte [esp + 0xd3], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0xd2], al
push 0
mov eax, edx
push 0
push dword [esp + 0x3c]
shr ecx, 8
shr eax, 8
mov byte [esp + 0xd9], cl
mov byte [esp + 0xdd], al
mov byte [esp + 0xdc], dl
call sym.php5.dll__php_stream_seek
lea eax, [esp + 0x5c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x44]
push dword [esp + 0x4c]
call sym.php5.dll__php_stream_copy_to_stream_ex
add esp, 0x24
test eax, eax
jne 0x1022984f
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x48], eax
jne 0x1022984f
push 3
push dword [esp + 0x30]
call sym.php5.dll__php_stream_free
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax + 0xc8], 0
push 0x16
je 0x10229712
movzx ecx, word [esp + 0x24]
mov eax, ecx
shr eax, 8
mov byte [esp + 0xd1], al
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x30]
mov byte [esp + 0xd8], cl
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp eax, 0x16
je 0x102296a7
test esi, esi
je 0x1022987a
mov eax, dword [esp + 0x10]
push dword [eax]
push str.phar_zip_flush_of___s__failed:_unable_to_write_end_of_central_directory
push 0x1000
push esi
call sym.php5.dll_spprintf
add esp, 0x10
jmp 0x1022987a
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x30]
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp dword [esp + 0x20], eax
je 0x102296e7
test esi, esi
je 0x1022987a
mov eax, dword [esp + 0x10]
push dword [eax]
push str.phar_zip_flush_of___s__failed:_unable_to_write_metadata_to_zip_comment
push 0x1000
push esi
call sym.php5.dll_spprintf
add esp, 0x10
jmp 0x1022987a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10229700
push eax
call sym.php5.dll__efree
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x1022972f
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x30]
call sym.php5.dll__php_stream_write
add esp, 0xc
cmp eax, 0x16
jne 0x10229681
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb0]
test ecx, ecx
je 0x10229753
cmp dword [esp + 0x34], 0
je 0x10229753
push 3
push ecx
call sym.php5.dll__php_stream_free
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x10229781
cmp dword [esp + 0x38], 0
je 0x10229773
push 3
push ecx
call sym.php5.dll__php_stream_free
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [eax + 0xb4], 0
mov eax, dword [esp + 0x10]
and dword [eax + 0xd4], 0xfffffff7
mov ecx, dword [esp + 0x10]
test byte [ecx + 0xd4], 0x10
je 0x102297a4
mov eax, dword [esp + 0x28]
mov dword [ecx + 0xb0], eax
jmp 0x10229837
push 0
push 0
push 0x1a
push 0x10548f4c
push dword [ecx]
call sym.php5.dll__php_stream_open_wrapper_ex
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov dword [ecx + 0xb0], eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0xb0], 0
jne 0x10229805
test ebx, ebx
je 0x102297e3
push 3
push edi
call sym.php5.dll__php_stream_free
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [ecx + 0xb0], eax
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.unable_to_open_new_phar___s__for_writing
jmp 0x102298e1
push 0
push 0
push dword [esp + 0x30]
call sym.php5.dll__php_stream_seek
mov eax, dword [esp + 0x1c]
push 0
push 0xffffffffffffffff
push dword [eax + 0xb0]
push dword [esp + 0x40]
call sym.php5.dll__php_stream_copy_to_stream_ex
push 3
push dword [esp + 0x48]
call sym.php5.dll__php_stream_free
add esp, 0x24
test ebx, ebx
je 0x102298ef
push 3
push edi
call sym.php5.dll__php_stream_free
add esp, 8
jmp 0x102298ef
test esi, esi
je 0x1022986c
mov eax, dword [esp + 0x10]
push dword [eax]
push str.phar_zip_flush_of___s__failed:_unable_to_write_central_directory
push 0x1000
push esi
call sym.php5.dll_spprintf
add esp, 0x10
push 3
push dword [esp + 0x30]
call sym.php5.dll__php_stream_free
add esp, 8
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xc8], 0
je 0x102298b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x102298a0
push eax
call sym.php5.dll__efree
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push 3
push dword [esp + 0x2c]
call sym.php5.dll__php_stream_free
add esp, 8
jmp 0x10229837
test ebx, ebx
je 0x102298d2
push 3
push edi
call sym.php5.dll__php_stream_free
add esp, 8
test esi, esi
je 0x102298ef
mov eax, dword [esp + 0x10]
push dword [eax]
push str.phar_zip_flush_of___s__failed:_unable_to_open_temporary_file
push 0x1000
push esi
call sym.php5.dll_spprintf
add esp, 0x10
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.10311bec
add esp, 0xd8
ret