Function at 0x679570
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c7f28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x679843
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00405cc0
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp + 8]
add esp, 4
push eax
call fcn.0060d920
add esp, 8
mov ecx, dword [ebp + 8]
push 0x80
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00604620
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00607360
push str.insert_into_tb_fav__id___parent_id___is_folder___title___url_pos___create_time___last_modify_time___is_best___reserved_____________________________values__:id__:parent_id__:is_folder__:title__:url_:pos__:create_time__:last_modify_time__:is_best__:reserved_
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x34]
call fcn.00606850
mov eax, dword [ebp + 0xc]
cmp eax, 0x3e8
mov byte [ebp - 4], 3
jge 0x67962c
mov eax, 0x3e8
push eax
push 0x815c14
lea ecx, [ebp - 0x28]
call fcn.00606720
push 0
push str.:parent_id
lea ecx, [ebp - 0x28]
call fcn.00606720
push 0
push str.:is_folder
lea ecx, [ebp - 0x28]
call fcn.00606720
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.0060d540
add esp, 8
mov eax, dword [eax]
push eax
push str.:title
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00606700
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6796a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push eax
lea edx, [ebp + 0xc]
push edx
call fcn.0060d540
add esp, 8
mov eax, dword [eax]
push eax
push str.:url
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00606700
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6796ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push str.:pos
lea ecx, [ebp - 0x28]
call fcn.00606720
push str.1312729546475800001
push str.:create_time
lea ecx, [ebp - 0x28]
call fcn.00606700
push str.1312729546475800001
push str.:last_modify_time
lea ecx, [ebp - 0x28]
call fcn.00606700
push 0
push str.:is_best
lea ecx, [ebp - 0x28]
call fcn.00606720
push 0
push str.:reserved
lea ecx, [ebp - 0x28]
call fcn.00606720
lea ecx, [ebp - 0x28]
call fcn.00605f20
mov esi, dword [ebp + 0x20]
mov ecx, dword [esi]
neg ecx
sbb ecx, ecx
test ecx, 0x675b90
je 0x6797ca
push 0x830150
lea ecx, [ebp + 0xc]
call fcn.004068d0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp + 0x10]
mov bl, 6
push eax
mov byte [ebp - 4], bl
call edx
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00676d80
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6797a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6797ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00605ec0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.006067f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x679808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c