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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_strpbrk]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
push ebp
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x64]
xor ebp, ebp
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ebp
movq qword [esp + 0x2c], xmm0
test eax, eax
je 0x10198008
push 0x104bdde8
push eax
call ebx
add esp, 8
test eax, eax
je 0x10198008
push str.Cookie_names_cannot_contain_any_of_the_following_____t_r_n013014
push 2
call sym.php5.dll_zend_error
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10311bec
add esp, 0x3c
ret
push edi
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x10198049
test esi, esi
je 0x10198049
push str.____t_r_n_v_f
push esi
call ebx
add esp, 8
test eax, eax
je 0x10198049
push str.Cookie_values_cannot_contain_any_of_the_following_____t_r_n013014
push 2
call sym.php5.dll_zend_error
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10311bec
add esp, 0x3c
ret
mov ebx, dword [esp + 0x54]
add ebx, 0xd
test esi, esi
je 0x1019807f
test edi, edi
je 0x10198070
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
push esi
call sym.php5.dll_php_url_encode
add esp, 0xc
add ebx, dword [esp + 0x28]
jmp 0x1019807d
push esi
call sym.php5.dll__estrdup
add esp, 4
add ebx, dword [esp + 0x10]
mov ebp, eax
cmp dword [esp + 0x14], 0
je 0x1019808a
add ebx, dword [esp + 0x68]
cmp dword [esp + 0x18], 0
je 0x10198095
add ebx, dword [esp + 0x70]
add ebx, 0x64
push ebx
call sym.php5.dll__emalloc
add esp, 4
mov edi, eax
test esi, esi
je 0x101981a9
cmp dword [esp + 0x10], 0
jne 0x101981a9
push 0
push 1
push 0x10
push str.D__d_M_Y_H:i:s_T
call sym.php5.dll_php_format_date
mov esi, eax
push esi
push dword [esp + 0x30]
push str.Set_Cookie:__sdeleted__expires_s__Max_Age0
push ebx
push edi
call sym.php5.dll_ap_php_snprintf
push esi
call sym.php5.dll__efree
add esp, 0x28
test ebp, ebp
je 0x101980ef
push ebp
call sym.php5.dll__efree
add esp, 4
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x10198115
cmp dword [esp + 0x68], 0
jle 0x10198115
push ebx
push str.__path
push edi
call sym.php5.dll_php_strlcat
push ebx
push ebp
push edi
call sym.php5.dll_php_strlcat
add esp, 0x18
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x1019813b
cmp dword [esp + 0x70], 0
jle 0x1019813b
push ebx
push str.__domain
push edi
call sym.php5.dll_php_strlcat
push ebx
push ebp
push edi
call sym.php5.dll_php_strlcat
add esp, 0x18
cmp dword [esp + 0x74], 0
je 0x10198151
push ebx
push str.__secure
push edi
call sym.php5.dll_php_strlcat
add esp, 0xc
cmp dword [esp + 0x7c], 0
je 0x10198167
push ebx
push str.__httponly
push edi
call sym.php5.dll_php_strlcat
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x2c], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10198170
lea eax, [esp + 0x2c]
push eax
sub ecx, edx
push 1
mov dword [esp + 0x38], ecx
call sym.php5.dll_sapi_header_op
push edi
mov esi, eax
call sym.php5.dll__efree
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10311bec
add esp, 0x3c
ret
mov eax, 0x1053ac9c
test esi, esi
cmovne eax, ebp
push eax
push dword [esp + 0x20]
push str.Set_Cookie:__s_s
push ebx
push edi
call sym.php5.dll_ap_php_snprintf
mov esi, dword [esp + 0x34]
add esp, 0x14
test esi, esi
jle 0x101980e2
push ebx
push str.__expires
push edi
call sym.php5.dll_php_strlcat
push 0
push esi
push 0x10
push str.D__d_M_Y_H:i:s_T
call sym.php5.dll_php_format_date
mov esi, eax
mov edx, esi
add esp, 0x1c
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x101981f8
sub edx, eax
je 0x1019821a
lea eax, [esi - 1]
add eax, edx
cmp eax, esi
jb 0x1019821a
lea esp, [esp]
cmp byte [eax], 0x2d
je 0x10198251
dec eax
cmp eax, esi
jae 0x10198210
push esi
call sym.php5.dll__efree
push edi
call sym.php5.dll__efree
push ebp
call sym.php5.dll__efree
push str.Expiry_date_cannot_have_a_year_greater_than_9999
push 2
call sym.php5.dll_zend_error
mov ecx, dword [esp + 0x5c]
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x3c
ret
cmp byte [eax + 5], 0x20
jne 0x1019821a
push ebx
push esi
push edi
call sym.php5.dll_php_strlcat
push esi
call sym.php5.dll__efree
push 0
call dword [sym.imp.MSVCR110.dll__time32]
push eax
push dword [esp + 0x38]
call dword [sym.imp.MSVCR110.dll__difftime32]
fstp qword [esp + 0x3c]
cvttsd2si eax, qword [esp + 0x3c]
push eax
push 0x104bdf10
lea eax, [esp + 0x5c]
push 0xd
push eax
call sym.php5.dll_ap_php_snprintf
push ebx
push str.__Max_Age
push edi
call sym.php5.dll_php_strlcat
push ebx
lea eax, [esp + 0x74]
push eax
push edi
call sym.php5.dll_php_strlcat
add esp, 0x44
jmp 0x101980e2