Function at 0x679280
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x7c7ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
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 + 0x4c], ecx
mov esi, dword [ebp + 0x58]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x67953a
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00604620
mov eax, dword [esi]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00607360
push str.select_id__url_title__create_time_from_tb_fav
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.006069b0
mov edi, dword [ebp + 0x64]
mov byte [ebp - 4], 2
mov edi, edi
lea ecx, [ebp + 0x14]
call fcn.00605910
cmp al, bl
jne 0x679523
lea ecx, [ebp + 0x2c]
call fcn.00648b30
push 0x83096c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.00606c20
lea ecx, [ebp - 0x110]
push 0xfde9
mov dword [ebp - 0x114], ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.00580860
mov esi, dword [ebp - 0x114]
mov byte [ebp - 4], 4
cmp esi, ebx
jne 0x679358
xor eax, eax
jmp 0x67936f
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x679360
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x34]
call fcn.00406740
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov byte [ebp - 4], 3
cmp eax, edx
je 0x679396
push eax
call fcn.007238ab
add esp, 4
mov eax, dword [ebp + 0x34]
cmp dword [eax - 0xc], ebx
jne 0x6793b7
lea ecx, [ebp + 0x14]
call fcn.00605960
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 2
call fcn.00675d50
jmp 0x679300
push ebx
push ebx
push str.create_time
lea ecx, [ebp + 0x14]
call fcn.00606cf0
mov ecx, eax
mov eax, edx
cmp eax, ebx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], eax
jg 0x6793f4
jl 0x6793db
cmp ecx, 0x64
jae 0x6793f4
lea ecx, [ebp + 0x14]
call fcn.00605960
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 2
call fcn.00675d50
jmp 0x679300
cmp eax, 0x1634578
jg 0x679415
jl 0x679405
cmp ecx, 0x5d8a0000
jae 0x679415
push ebx
push 0xa
push eax
push ecx
call fcn.00729750
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], edx
push str.title
lea ecx, [ebp + 0x14]
call fcn.00606c20
lea ecx, [ebp - 0x110]
push 0xfde9
mov dword [ebp - 0x114], ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.00580860
mov esi, dword [ebp - 0x114]
mov byte [ebp - 4], 5
cmp esi, ebx
jne 0x679451
xor eax, eax
jmp 0x679465
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x679456
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.00406740
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov byte [ebp - 4], 3
cmp eax, edx
je 0x67948c
push eax
call fcn.007238ab
add esp, 4
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp + 0x58]
push edx
call eax
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 6
call fcn.00404210
mov eax, dword [ebp + 0x58]
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 0x6794c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x830958
lea ecx, [ebp + 0x14]
call fcn.00606c70
cmp dword [edi], eax
jge 0x6794dd
mov dword [edi], eax
lea ecx, [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x5c]
call fcn.00676d10
cmp eax, ebx
je 0x67939e
mov ecx, dword [ebp + 0x60]
lea edx, [ebp + 0x2c]
push edx
call fcn.00678810
lea ecx, [ebp + 0x2c]
call fcn.00675d50
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.00605360
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.006067f0
mov eax, 1
jmp 0x67953c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.00605360
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.006067f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
mov esp, ebp
pop ebp
ret 0x10