Function at 0x1021e290
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0x3bc
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x3b8], eax
mov eax, dword [esp + 0x3c8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3cc]
push ebx
mov ebx, dword [esp + 0x3c4]
push ebp
mov ebp, dword [esp + 0x3cc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3d8]
push edi
mov edi, dword [esp + 0x3ec]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3e0]
push 0x68
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x50]
push 0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0
test edi, edi
je 0x1021e32a
mov dword [edi], 0
push 2
push 0
push ebx
call sym.php5.dll__php_stream_seek
push ebx
call sym.php5.dll__php_stream_tell
push 0
push 0
push ebx
mov dword [esp + 0x44], eax
call sym.php5.dll__php_stream_seek
push 0x200
lea eax, [esp + 0xe0]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0x28
cmp eax, 0x200
je 0x1021e3a3
test edi, edi
je 0x1021e37d
push ebp
push str.phar_error:___s__is_not_a_tar_file_or_is_truncated
push 0x1000
push edi
call sym.php5.dll_spprintf
add esp, 0x10
push 3
push ebx
call sym.php5.dll__php_stream_free
add esp, 8
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.10311bec
add esp, 0x3bc
ret
lea eax, [esp + 0x1c1]
cmp dword [eax], 0x61747375
jne 0x1021e3bc
cmp byte [eax + 4], 0x72
jne 0x1021e3bc
xor ebp, ebp
jmp 0x1021e3c1
mov ebp, 1
cmp dword [0x106607ac], 0
mov dword [esp + 0x20], ebp
push esi
je 0x1021e3f1
push 0
push 0xd8
push 1
call sym.php5.dll__safe_malloc
push 0xd8
mov esi, eax
push 0
push esi
call sub.MSVCR110.dll_memset
add esp, 0x18
jmp 0x1021e402
push 0xd8
push 1
call sym.php5.dll__ecalloc
add esp, 8
mov esi, eax
mov eax, dword [0x106607ac]
shl eax, 8
mov dword [esp + 0x10], esi
xor eax, dword [esi + 0xd4]
and eax, 0x100
xor dword [esi + 0xd4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xd4]
shr eax, 8
and al, 1
movzx eax, al
push eax
mov eax, dword [esp + 0x30]
shr eax, 0xc
add eax, 2
push fcn.1020cc30
push eax
lea eax, [ecx + 0x2c]
push eax
call sym.php5.dll__zend_hash_init
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xd4]
shr eax, 8
and al, 1
movzx eax, al
push eax
push 0
lea eax, [ecx + 0x7c]
push 5
push eax
call sym.php5.dll__zend_hash_init
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xd4]
shr eax, 8
and al, 1
movzx eax, al
push eax
mov eax, dword [esp + 0x50]
shr eax, 0xb
add eax, 4
push 0
push eax
lea eax, [ecx + 0x54]
push eax
call sym.php5.dll__zend_hash_init
mov eax, dword [esp + 0x40]
add esp, 0x30
or dword [eax + 0xd4], 0x40
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3ec]
mov dword [ecx + 0xa4], eax
mov eax, dword [esp + 0x10]
or dword [esp + 0xb4], 0x41
mov dword [esp + 0x94], eax
push ebx
mov esi, 0x101
call sym.php5.dll__php_stream_tell
xor edx, edx
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], edx
xor ecx, ecx
cmp byte [esp + ecx + 0x158], 0x20
jne 0x1021e4f2
inc ecx
cmp ecx, 8
jl 0x1021e4e0
jmp 0x1021e526
cmp ecx, 8
jge 0x1021e526
jmp 0x1021e500
mov al, byte [esp + ecx + 0x158]
cmp al, 0x30
jl 0x1021e51e
cmp al, 0x37
jg 0x1021e51e
movsx eax, al
add edx, 0xfffffffa
inc ecx
lea edx, [eax + edx*8]
cmp ecx, 8
jl 0x1021e500
mov dword [esp + 0x48], edx
test edx, edx
jne 0x1021e549
lea ecx, [esp + 0xc4]
xor edx, edx
nop
movzx eax, byte [ecx]
add edx, eax
inc ecx
lea eax, [esp + 0x2c4]
cmp ecx, eax
jne 0x1021e530
test edx, edx
je 0x1021f1d1
xor edi, edi
lea ecx, [esp + 0xc4]
test ebp, ebp
mov eax, 0x200
cmovne eax, esi
mov edx, ecx
add edx, eax
mov eax, ecx
mov dword [esp + 0x158], 0x20202020
mov dword [esp + 0x15c], 0x20202020
mov dword [esp + 0x3c], edi
cmp eax, edx
je 0x1021e58e
movzx eax, byte [ecx]
inc ecx
add edi, eax
cmp ecx, edx
jne 0x1021e580
mov dword [esp + 0x3c], edi
xor ebp, ebp
mov dword [esp + 0x28], ebp
xor ecx, ecx
cmp byte [esp + ecx + 0x140], 0x20
jne 0x1021e5f1
cmp byte [esp + ecx + 0x141], 0x20
jne 0x1021e5f0
cmp byte [esp + ecx + 0x142], 0x20
jne 0x1021e5eb
cmp byte [esp + ecx + 0x143], 0x20
jne 0x1021e5e6
cmp byte [esp + ecx + 0x144], 0x20
jne 0x1021e5e1
cmp byte [esp + ecx + 0x145], 0x20
jne 0x1021e5dc
add ecx, 6
cmp ecx, 0xc
jl 0x1021e596
jmp 0x1021e622
add ecx, 5
jmp 0x1021e5f1
add ecx, 4
jmp 0x1021e5f1
add ecx, 3
jmp 0x1021e5f1
add ecx, 2
jmp 0x1021e5f1
inc ecx
cmp ecx, 0xc
jge 0x1021e622
jmp 0x1021e600
mov al, byte [esp + ecx + 0x140]
cmp al, 0x30
jl 0x1021e61e
cmp al, 0x37
jg 0x1021e61e
movsx eax, al
add ebp, 0xfffffffa
inc ecx
lea ebp, [eax + ebp*8]
cmp ecx, 0xc
jl 0x1021e600
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x24], 0
mov bl, byte [esp + 0x21d]
mov dl, byte [esp + 0x160]
mov esi, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], esi
jne 0x1021e657
cmp dl, 0x67
je 0x1021e70e
cmp dl, 0x78
je 0x1021e70e
test bl, bl
jne 0x1021e6a4
lea ecx, [esp + 0xc4]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1021e661
sub ecx, edi
cmp ecx, 0x13
jne 0x1021e6a0
push ecx
lea eax, [esp + 0xc8]
push str..phar_signature.bin
push eax
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1021eeb0
mov esi, dword [esp + 0x4c]
mov bl, byte [esp + 0x21d]
mov dl, byte [esp + 0x160]
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x38], 0
jne 0x1021e9a8
cmp dl, 0x4c
jne 0x1021e7a8
mov dword [esp + 0x38], 1
mov dword [esp + 0x6c], esi
cmp esi, 0xffffffff
je 0x1021f09d
mov eax, dword [esp + 0x10]
test dword [eax + 0xd4], 0x100
lea eax, [esi + 1]
push eax
je 0x1021e722
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
jne 0x1021e72e
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]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
mov ebx, dword [esp + 0x1c]
lea eax, [ebp + 0x1ff]
and eax, 0xfffffe00
jmp 0x1021ee6a
call sym.php5.dll__emalloc
mov esi, dword [esp + 0x70]
add esp, 4
mov ebx, dword [esp + 0x1c]
push esi
push eax
push ebx
mov dword [esp + 0x7c], eax
call sym.php5.dll__php_stream_read
mov ecx, dword [esp + 0x78]
add esp, 0xc
cmp eax, ecx
jne 0x1021f071
mov eax, dword [esp + 0x70]
push 1
mov byte [eax + ecx], 0
lea eax, [ebp + 0x1ff]
and eax, 0xfffffe00
sub eax, ebp
push eax
push ebx
call sym.php5.dll__php_stream_seek
push ebx
call sym.php5.dll__php_stream_tell
add esp, 0x10
cmp eax, dword [esp + 0x2c]
ja 0x1021f071
push 0x200
lea eax, [esp + 0xc8]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, 0x200
jne 0x1021f071
mov ebp, dword [esp + 0x24]
jmp 0x1021e4c6
mov ebp, dword [esp + 0x24]
test ebp, ebp
jne 0x1021e907
test bl, bl
je 0x1021e907
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x21d]
mov byte [esp + eax + 0x2c4], cl
test cl, cl
je 0x1021e836
mov cl, byte [esp + eax + 0x21e]
mov byte [esp + eax + 0x2c5], cl
test cl, cl
je 0x1021e835
mov cl, byte [esp + eax + 0x21f]
mov byte [esp + eax + 0x2c6], cl
test cl, cl
je 0x1021e830
mov cl, byte [esp + eax + 0x220]
mov byte [esp + eax + 0x2c7], cl
test cl, cl
je 0x1021e82b
mov cl, byte [esp + eax + 0x221]
mov byte [esp + eax + 0x2c8], cl
test cl, cl
je 0x1021e826
add eax, 5
cmp eax, 0x9b
jl 0x1021e7c0
jmp 0x1021e836
add eax, 4
jmp 0x1021e836
add eax, 3
jmp 0x1021e836
add eax, 2
jmp 0x1021e836
inc eax
mov byte [esp + eax + 0x2c4], 0x2f
inc eax
lea esi, [esp + 0x2c5]
xor edx, edx
add esi, eax
lea ebx, [ebx]
mov cl, byte [esp + edx + 0xc4]
mov byte [esi - 1], cl
test cl, cl
je 0x1021e8b2
mov cl, byte [esp + edx + 0xc5]
mov byte [esi], cl
test cl, cl
je 0x1021e8b1
mov cl, byte [esp + edx + 0xc6]
mov byte [esi + 1], cl
test cl, cl
je 0x1021e8ac
mov cl, byte [esp + edx + 0xc7]
mov byte [esi + 2], cl
test cl, cl
je 0x1021e8a7
mov cl, byte [esp + edx + 0xc8]
mov byte [esi + 3], cl
test cl, cl
je 0x1021e8a2
add edx, 5
add esi, 5
cmp edx, 0x64
jl 0x1021e850
jmp 0x1021e8b2
add edx, 4
jmp 0x1021e8b2
add edx, 3
jmp 0x1021e8b2
add edx, 2
jmp 0x1021e8b2
inc edx
lea ecx, [edx + eax]
mov dword [esp + 0x6c], ecx
cmp byte [esp + ecx + 0x2c3], 0x2f
jne 0x1021e8c8
dec ecx
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x10]
push ecx
test dword [eax + 0xd4], 0x100
lea eax, [esp + 0x2c8]
push eax
je 0x1021e8f4
call sym.php5.dll_zend_strndup
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
jmp 0x1021e9b0
call sym.php5.dll__estrndup
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
jmp 0x1021e9b0
xor esi, esi
lea esp, [esp]
cmp byte [esp + esi + 0xc4], 0
je 0x1021e95c
cmp byte [esp + esi + 0xc5], 0
je 0x1021e95b
cmp byte [esp + esi + 0xc6], 0
je 0x1021e956
cmp byte [esp + esi + 0xc7], 0
je 0x1021e951
cmp byte [esp + esi + 0xc8], 0
je 0x1021e94c
add esi, 5
cmp esi, 0x64
jl 0x1021e910
jmp 0x1021e95c
add esi, 4
jmp 0x1021e95c
add esi, 3
jmp 0x1021e95c
add esi, 2
jmp 0x1021e95c
inc esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], esi
test dword [eax + 0xd4], 0x100
push esi
lea eax, [esp + 0xc8]
push eax
je 0x1021e980
call sym.php5.dll_zend_strndup
jmp 0x1021e985
call sym.php5.dll__estrndup
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test esi, esi
jle 0x1021e9b0
mov eax, dword [esp + 0x6c]
cmp byte [eax + ecx - 1], 0x2f
jne 0x1021e9b0
mov byte [eax + ecx - 1], 0
dec dword [esp + 0x6c]
jmp 0x1021e9ac
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
push dword [esp + 0x6c]
mov dword [esp + 0x3c], 0
push ecx
push dword [esp + 0x18]
call fcn.102225a0
add esp, 0xc
cmp dword [esp + 0x48], edi
jne 0x1021f173
mov cl, byte [esp + 0x160]
xor eax, eax
test cl, cl
sete al
movzx ebx, cl
mov dword [esp + 0x74], 0
test ebp, eax
mov eax, 0x30
cmovne ebx, eax
mov eax, dword [esp + 0x34]
xor edx, edx
mov byte [esp + 0xa8], bl
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
xor ecx, ecx
lea ecx, [ecx]
cmp byte [esp + ecx + 0x128], 0x20
jne 0x1021ea22
inc ecx
cmp ecx, 8
jl 0x1021ea10
jmp 0x1021ea4e
cmp ecx, 8
jge 0x1021ea4e
jmp 0x1021ea30
mov al, byte [esp + ecx + 0x128]
cmp al, 0x30
jl 0x1021ea4e
cmp al, 0x37
jg 0x1021ea4e
movsx eax, al
add edx, 0xfffffffa
inc ecx
lea edx, [eax + edx*8]
cmp ecx, 8
jl 0x1021ea30
and edx, 0x1ff
xor esi, esi
mov dword [esp + 0x5c], edx
xor ecx, ecx
lea esp, [esp]
cmp byte [esp + ecx + 0x14c], 0x20
jne 0x1021eabb
cmp byte [esp + ecx + 0x14d], 0x20
jne 0x1021eaba
cmp byte [esp + ecx + 0x14e], 0x20
jne 0x1021eab5
cmp byte [esp + ecx + 0x14f], 0x20
jne 0x1021eab0
cmp byte [esp + ecx + 0x150], 0x20
jne 0x1021eaab
cmp byte [esp + ecx + 0x151], 0x20
jne 0x1021eaa6
add ecx, 6
cmp ecx, 0xc
jl 0x1021ea60
jmp 0x1021eade
add ecx, 5
jmp 0x1021eabb
add ecx, 4
jmp 0x1021eabb
add ecx, 3
jmp 0x1021eabb
add ecx, 2
jmp 0x1021eabb
inc ecx
cmp ecx, 0xc
jge 0x1021eade
mov al, byte [esp + ecx + 0x14c]
cmp al, 0x30
jl 0x1021eade
cmp al, 0x37
jg 0x1021eade
movsx eax, al
add esi, 0xfffffffa
inc ecx
lea esi, [eax + esi*8]
cmp ecx, 0xc
jl 0x1021eac0
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
xor eax, ecx
and eax, 0x100
xor ecx, eax
test ebp, ebp
je 0x1021eb21
cmp bl, 0x30
jne 0x1021eb21
and edx, 0xf000
cmp edx, 0x4000
jne 0x1021eb2b
mov bl, 0x35
mov byte [esp + 0xa8], bl
or ecx, 8
jmp 0x1021eb2e
cmp bl, 0x35
jne 0x1021eb2b
or ecx, 8
jmp 0x1021eb2e
and ecx, 0xfffffff7
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xa4], 0
cmp bl, 0x31
jne 0x1021ebc5
lea ecx, [esp + 0x161]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1021eb53
sub ecx, edx
push ecx
lea eax, [esp + 0x165]
push eax
lea eax, [esi + 0x2c]
push eax
call sym.php5.dll_zend_hash_exists
add esp, 0xc
test eax, eax
jne 0x1021ebca
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021eb9c
lea ecx, [esp + 0x161]
push ecx
push dword [esp + 0x18]
push str.phar_error:___s__is_a_corrupted_tar_file___hard_link_to_non_existent_file___s_
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x14
test dword [esp + 0xb4], 0x100
push dword [esp + 0x70]
je 0x1021f1be
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push 3
push dword [esp + 0x20]
jmp 0x1021f37f
cmp bl, 0x32
jne 0x1021ebe1
lea eax, [esp + 0x161]
push eax
call sym.php5.dll__estrdup
mov dword [esp + 0xa8], eax
add esp, 4
mov ebx, dword [esp + 0x94]
mov edi, dword [esp + 0x6c]
mov eax, dword [ebx + 4]
mov ecx, 0x104
lea ebp, [eax + edi]
cmp ebp, 0x104
cmova ebp, ecx
cmp eax, ebp
mov esi, ebp
cmovl esi, eax
push esi
push dword [ebx]
lea eax, [esp + 0x2cc]
push eax
call sub.MSVCR110.dll_memcpy
mov eax, ebp
sub eax, esi
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebx + 4]
push edi
push dword [esp + 0x80]
lea eax, [esp + eax + 0x2d8]
push eax
call sub.MSVCR110.dll_memcpy
lea eax, [esp + 0x2dc]
push ebp
push eax
call sym.php5.dll_zend_hash_func
mov word [esp + 0xd0], ax
push 2
lea eax, [esp + 0xe0]
push eax
push 0x6c
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x9c]
mov eax, dword [esp + 0x44]
push dword [esp + 0xa4]
add eax, 0x2c
push eax
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x3c
test dword [esp + 0xb4], 0x100
je 0x1021ec91
inc dword [esp + 0xac]
mov edi, dword [esp + 0x6c]
cmp edi, 0xf
jb 0x1021ecec
mov ecx, dword [esp + 0x70]
mov edx, str..phar_.metadata
mov esi, 0xb
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1021ecec
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1021eca8
mov ax, word [ecx]
mov ebx, dword [esp + 0x1c]
cmp ax, word [edx]
jne 0x1021ecf0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1021ecf0
push ebx
push dword [esp + 0xc0]
call fcn.10220270
add esp, 8
cmp eax, 0xffffffff
je 0x1021f0c7
mov edi, dword [esp + 0x6c]
jmp 0x1021ecf0
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
jne 0x1021ee47
cmp edi, 0xf
jne 0x1021ee47
push edi
push str..phar_alias.txt
push dword [esp + 0x78]
call dword [sym.imp.MSVCR110.dll_strncmp]
mov esi, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x1021ee4b
cmp esi, 0x1ff
ja 0x1021f153
push esi
lea eax, [esp + 0xc8]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, esi
jne 0x1021f133
cmp esi, 0x200
jae 0x1021f586
mov ebp, dword [sym.imp.MSVCR110.dll_memchr]
push esi
lea eax, [esp + 0xc8]
push 0x2f
push eax
mov byte [esp + esi + 0xd0], 0
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
push esi
lea eax, [esp + 0xc8]
push 0x5c
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
push esi
lea eax, [esp + 0xc8]
push 0x3a
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
push esi
lea eax, [esp + 0xc8]
push 0x3b
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
push esi
lea eax, [esp + 0xc8]
push 0xa
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
push esi
lea eax, [esp + 0xc8]
push 0xd
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x1021f0f3
mov eax, dword [esp + 0x10]
push esi
test dword [eax + 0xd4], 0x100
lea eax, [esp + 0xc8]
push eax
je 0x1021ee19
call sym.php5.dll_zend_strndup
mov ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x1021ee24
call sym.php5.dll__estrndup
mov ecx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0x38]
push eax
push ebx
call sym.php5.dll__php_stream_seek
add esp, 0xc
jmp 0x1021ee4b
mov esi, dword [esp + 0x28]
mov cl, byte [esp + 0x160]
lea eax, [esi + 0x1ff]
and eax, 0xfffffe00
test cl, cl
je 0x1021ee66
cmp cl, 0x30
jne 0x1021ee86
test eax, eax
je 0x1021ee86
push 1
push eax
push ebx
call sym.php5.dll__php_stream_seek
push ebx
call sym.php5.dll__php_stream_tell
add esp, 0x10
cmp eax, dword [esp + 0x2c]
ja 0x1021f07d
push 0x200
lea eax, [esp + 0xc8]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, 0x200
jne 0x1021f07d
mov ebp, dword [esp + 0x24]
jmp 0x1021e4c6
cmp ebp, 0x1ff
jbe 0x1021eee0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021eed7
push dword [esp + 0x14]
push str.phar_error:_tar_based_phar___s__has_signature_that_is_larger_than_511_bytes__cannot_process
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x10
mov ebx, dword [esp + 0x1c]
jmp 0x1021f37c
mov ebx, dword [esp + 0x1c]
push ebx
call sym.php5.dll__php_stream_tell
mov esi, eax
push ebp
lea eax, [esp + 0xcc]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0x10
cmp eax, ebp
je 0x1021ef22
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:_tar_based_phar___s__signature_cannot_be_read
push 0x1000
push eax
jmp 0x1021f374
movsx ecx, byte [esp + 0xc4]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0x10]
push edi
lea eax, [ecx + 0xc0]
push eax
lea eax, [ecx + 0xc4]
push eax
push dword [esp + 0x20]
lea eax, [ebp - 8]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [ecx + 0xbc]
push ebx
call sym.php5.dll__php_stream_tell
mov ecx, 0xfffffe00
sub ecx, ebp
add esp, 4
add eax, ecx
push eax
push ebx
call fcn.10221c50
add esp, 0x24
cmp eax, 0xffffffff
jne 0x1021efaf
test edi, edi
je 0x1021f37c
mov esi, dword [edi]
push esi
push dword [esp + 0x18]
push str.phar_error:_tar_based_phar___s__signature_cannot_be_verified:__s
push 0x1000
push edi
call sym.php5.dll_spprintf
push esi
call sym.php5.dll__efree
add esp, 0x18
jmp 0x1021f37c
push 0
lea eax, [esi + 0x200]
push eax
push ebx
call sym.php5.dll__php_stream_seek
mov al, byte [esp + 0x16c]
add esp, 0xc
test al, al
je 0x1021efd0
cmp al, 0x30
jne 0x1021eff0
test ebp, ebp
je 0x1021eff0
push 1
push 0x200
push ebx
call sym.php5.dll__php_stream_seek
push ebx
call sym.php5.dll__php_stream_tell
add esp, 0x10
cmp eax, dword [esp + 0x2c]
ja 0x1021f00d
push 0x200
lea eax, [esp + 0xc8]
push eax
push ebx
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, 0x200
je 0x1021f023
test edi, edi
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:___s__is_a_corrupted_tar_file__truncated_
jmp 0x1021f36e
lea eax, [esp + 0x158]
push 8
push eax
call fcn.102201a0
add esp, 8
test eax, eax
jne 0x1021f05b
lea ecx, [esp + 0xc4]
xor edx, edx
movzx eax, byte [ecx]
add edx, eax
inc ecx
lea eax, [esp + 0x2c4]
cmp ecx, eax
jne 0x1021f042
test edx, edx
je 0x1021f1d5
test edi, edi
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:___s__has_entries_after_signature__invalid_phar
jmp 0x1021f36e
push dword [esp + 0x70]
call sym.php5.dll__efree
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:___s__is_a_corrupted_tar_file__truncated_
push 0x1000
push eax
jmp 0x1021f374
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f0bc
push dword [esp + 0x14]
push str.phar_error:___s__is_a_corrupted_tar_file__invalid_entry_size_
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x10
push 3
push dword [esp + 0x20]
jmp 0x1021f37f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x70]
push dword [esp + 0x18]
push str.phar_error:_tar_based_phar___s__has_invalid_metadata_in_magic_file___s_
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x14
jmp 0x1021f37c
cmp esi, 0x32
jbe 0x1021f103
mov dword [esp + 0xf6], 0x2e2e2e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x14]
lea ecx, [esp + 0xc8]
push ecx
push str.phar_error:_invalid_alias___s__in_tar_based_phar___s_
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x14
jmp 0x1021f37c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:_Unable_to_read_alias_from_tar_based_phar___s_
push 0x1000
push eax
jmp 0x1021f374
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f37c
push dword [esp + 0x14]
push str.phar_error:_tar_based_phar___s__has_alias_that_is_larger_than_511_bytes__cannot_process
push 0x1000
push eax
jmp 0x1021f374
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1021f196
push dword [esp + 0x70]
push dword [esp + 0x18]
push str.phar_error:___s__is_a_corrupted_tar_file__checksum_mismatch_of_file___s__
push 0x1000
push eax
call sym.php5.dll_spprintf
add esp, 0x14
mov eax, dword [esp + 0x10]
push dword [esp + 0x70]
test dword [eax + 0xd4], 0x100
je 0x1021f1be
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push 3
push dword [esp + 0x20]
jmp 0x1021f37f
call sym.php5.dll__efree
add esp, 4
push 3
push dword [esp + 0x20]
jmp 0x1021f37f
mov edi, dword [esp + 0x18]
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
mov eax, dword [esp + 0x10]
je 0x1021f200
and dword [eax + 0xd4], 0xffffff7f
jmp 0x1021f20a
or dword [eax + 0xd4], 0x80
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xd4]
test cl, cl
js 0x1021f25e
cmp dword [0x106607c0], 0
je 0x1021f25e
cmp dword [eax + 0xc4], 0
jne 0x1021f25e
push 3
push ebx
call sym.php5.dll__php_stream_free
push dword [esp + 0x18]
call fcn.1020b5d0
add esp, 0xc
test edi, edi
je 0x1021f256
push dword [esp + 0x14]
push str.tar_based_phar___s__does_not_have_a_signature
push 0
push edi
call sym.php5.dll_spprintf
add esp, 0x10
or eax, 0xffffffff
jmp 0x1021f56d
mov ebp, dword [esp + 0x14]
test ecx, 0x100
mov ecx, dword [esp + 0x20]
push ecx
push ebp
je 0x1021f277
call sym.php5.dll_zend_strndup
jmp 0x1021f27c
call sym.php5.dll__estrndup
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test edx, edx
jle 0x1021f2a9
xor ecx, ecx
cmp byte [eax], 0x5c
jne 0x1021f29f
mov byte [eax], 0x2f
inc ecx
inc eax
cmp ecx, edx
jl 0x1021f297
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x10]
push 0x2f
mov dword [eax + 0xb0], ebx
mov eax, dword [esp + 0x14]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x1021f332
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
sub ecx, esi
add ecx, dword [esp + 0x20]
push ecx
push 0x2e
push esi
call dword [sym.imp.MSVCR110.dll_memchr]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 8], esi
jne 0x1021f31c
mov eax, dword [ecx]
mov ecx, dword [esp + 0x20]
sub eax, esi
dec ecx
add eax, ecx
push eax
lea eax, [esi + 1]
push 0x2e
push eax
call dword [sym.imp.MSVCR110.dll_memchr]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x20]
test edx, edx
je 0x1021f336
mov eax, dword [ecx]
sub eax, edx
add eax, esi
mov dword [ecx + 0xc], eax
jmp 0x1021f336
mov esi, dword [esp + 0x20]
call fcn.1020b450
push 2
lea eax, [esp + 0xbc]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
push esi
push dword [eax]
push 0x10660748
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
test eax, eax
je 0x1021f398
test edi, edi
je 0x1021f37c
push ebp
push str.phar_error:_Unable_to_add_tar_based_phar___s__to_phar_registry
push 0x1000
push edi
call sym.php5.dll_spprintf
add esp, 0x10
push 3
push ebx
call sym.php5.dll__php_stream_free
push dword [esp + 0x18]
call fcn.1020b5d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1021f56d
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x1021f44d
and dword [eax + 0xd4], 0xfffffffe
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x14]
push ebx
push 0x10660774
call sym.php5.dll_zend_hash_find
add esp, 0x10
test eax, eax
jne 0x1021f428
mov eax, dword [esp + 0x10]
push dword [eax + 0x14]
mov eax, dword [esp + 0x38]
push ebx
push dword [eax]
call fcn.10221120
add esp, 0xc
test eax, eax
je 0x1021f428
test edi, edi
je 0x1021f408
push ebp
push str.phar_error:_Unable_to_add_tar_based_phar___s___alias_is_already_in_use
push 0x1000
push edi
call sym.php5.dll_spprintf
add esp, 0x10
mov eax, dword [esp + 0x10]
push 0
push 0
push esi
push dword [eax]
push 0x10660748
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
or eax, 0xffffffff
jmp 0x1021f56d
push 2
push 0
push 4
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x14]
push ebx
push 0x10660774
call sym.php5.dll__zend_hash_add_or_update
add esp, 0x1c
jmp 0x1021f55a
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x1021f521
lea eax, [esp + 0x44]
push eax
push ebx
push dword [esp + 0x48]
push 0x10660774
call sym.php5.dll_zend_hash_find
add esp, 0x10
test eax, eax
jne 0x1021f4c3
mov eax, dword [esp + 0x44]
push ebx
push dword [esp + 0x44]
push dword [eax]
call fcn.10221120
add esp, 0xc
test eax, eax
je 0x1021f4c3
test edi, edi
je 0x1021f4a3
push ebp
push str.phar_error:_Unable_to_add_tar_based_phar___s___alias_is_already_in_use
push 0x1000
push edi
call sym.php5.dll_spprintf
add esp, 0x10
mov eax, dword [esp + 0x10]
push 0
push 0
push esi
push dword [eax]
push 0x10660748
call sym.php5.dll_zend_hash_del_key_or_index
add esp, 0x14
or eax, 0xffffffff
jmp 0x1021f56d
mov ebp, dword [esp + 0x40]
push 2
push 0
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
push 0x10660774
call sym.php5.dll__zend_hash_add_or_update
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test dword [eax + 0xd4], 0x100
push ebx
push ebp
je 0x1021f50a
call sym.php5.dll_zend_strndup
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], ebx
jmp 0x1021f54c
call sym.php5.dll__estrndup
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], ebx
jmp 0x1021f54c
test dword [eax + 0xd4], 0x100
push esi
push dword [eax]
je 0x1021f537
call sym.php5.dll_zend_strndup
jmp 0x1021f53c
call sym.php5.dll__estrndup
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0x18]
add esp, 8
or dword [eax + 0xd4], 1
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x1021f56b
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x3c8]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x3bc
ret
call fcn.10311d44
int3