Function at 0x100085b0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183b9e
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x101d90a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1ec]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push dword [ebp - 0x1ec]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x10008641
mov edx, dword [ebp - 0x1ec]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000863a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x10008f22
mov eax, dword [ebp - 0x1ec]
xor ecx, ecx
add eax, 0xfffffff0
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x1f8], ecx
mov byte [ebp - 4], 1
call fcn.10005980
add eax, 0x10
add esp, 4
mov dword [ebp - 0x218], eax
push str.DefaultHistory_temp
push str.DefaultHistory
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.10009130
mov esi, dword [ebp - 0x218]
push 0
push esi
push dword [ebp - 0x1ec]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call edi
test eax, eax
jne 0x100086e2
or edi, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100086c5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x10008630
lea ecx, [ebp - 0x234]
call fcn.10090690
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1bc], eax
test esi, esi
jne 0x1000870e
xor eax, eax
mov dword [ebp - 0x1bc], eax
jmp 0x100087f1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008713
sub ecx, edx
sar ecx, 1
push 0x80
lea edi, [ecx + 1]
lea ecx, [ebp - 0x1b8]
push ecx
lea eax, [edi*4]
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.10004920
add esp, 0x10
lea eax, [edi*4]
push 0
push 0
push eax
push dword [ebp - 0x1bc]
push edi
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x1e8], ecx
test eax, eax
jne 0x100087e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100087dd
push 0
push 0
push 0
push 0
push edi
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x80
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1e8], eax
push ecx
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.10004920
add esp, 0x10
push 0
push 0
push dword [ebp - 0x1e8]
push dword [ebp - 0x1bc]
push edi
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x100087e3
mov ecx, dword [ebp - 0x1e8]
test ecx, ecx
jne 0x10008f40
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.10090fd0
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x1000881e
push eax
call fcn.1016217a
add esp, 4
push str.select_url_title__visit_count__last_visit_time_from_urls_where_visit_count_1_order_by_last_visit_time_DESC
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x234]
call fcn.10090c50
mov byte [ebp - 4], 5
or edi, 0xffffffff
nop dword [eax]
lea ecx, [ebp - 0x254]
call fcn.10090c10
test al, al
jne 0x10008de4
mov ecx, dword [ebp - 0x21c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x21c], ecx
cmp eax, dword [ebp + 0xc]
jge 0x10008de4
lea ecx, [ebp - 0x214]
call fcn.10002ea0
push 0x10192a7c
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.10090e00
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x100088ad
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x10008988
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100088b2
sub ecx, edx
lea eax, [ebp - 0x134]
push 0x80
push eax
lea eax, [ebp - 0x138]
lea edi, [ecx + 1]
push edi
push eax
call fcn.100049a0
add esp, 0x10
push edi
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x1f0], ecx
test eax, eax
jne 0x1000897a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008974
push 0
push 0
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x80
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1f0], eax
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.100049a0
add esp, 0x10
push dword [ebp - 0x1f0]
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1000897a
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x10008f5f
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 7
test edx, edx
jne 0x10008994
xor ecx, ecx
jmp 0x100089af
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100089a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20c]
call fcn.10006830
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x100089d9
push eax
call fcn.1016217a
add esp, 4
push 0x10192a8c
lea ecx, [ebp - 0x254]
call fcn.10090e00
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x10008a0c
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x10008ae7
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008a11
sub ecx, edx
lea eax, [ebp - 0x134]
push 0x80
push eax
lea eax, [ebp - 0x138]
lea edi, [ecx + 1]
push edi
push eax
call fcn.100049a0
add esp, 0x10
push edi
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x1f0], ecx
test eax, eax
jne 0x10008ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008ad3
push 0
push 0
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x80
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1f0], eax
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.100049a0
add esp, 0x10
push dword [ebp - 0x1f0]
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x1e8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x10008ad9
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x10008f7e
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 8
test edx, edx
jne 0x10008af3
xor ecx, ecx
jmp 0x10008b0f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x210]
call fcn.10006830
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x10008b39
push eax
call fcn.1016217a
add esp, 4
push 0
push str.visit_count
lea ecx, [ebp - 0x254]
call fcn.10090ed0
mov ecx, dword [ebp - 0x220]
lea edx, [ebp - 0x224]
mov dword [ebp - 0x204], eax
push edx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [eax]
mov edi, dword [ebp - 0x214]
add edi, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x10008bcc
cmp dword [edi + 0xc], 0
jl 0x10008bbd
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x10008bbd
push edx
call fcn.10005980
add esp, 4
mov dword [ebp - 0x1f0], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008bb2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1f0]
add eax, 0x10
mov dword [ebp - 0x214], eax
jmp 0x10008bcc
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x214]
call fcn.10006830
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008bee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.1000d130
add esp, 8
mov ecx, dword [eax]
mov edi, dword [ebp - 0x208]
add edi, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x10008c6c
cmp dword [edi + 0xc], 0
jl 0x10008c5d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x10008c5d
push edx
call fcn.10005980
add esp, 4
mov dword [ebp - 0x1f0], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008c52
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1f0]
add eax, 0x10
mov dword [ebp - 0x208], eax
jmp 0x10008c6c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x208]
call fcn.10006830
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008c8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
lea ecx, [ebp - 0x254]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push str.last_visit_time
call fcn.10090e80
fstp qword [ebp - 0x1f4]
movsd xmm0, qword [ebp - 0x1f4]
call fcn.10137480
mov edi, eax
cmp edx, 0x1634578
ja 0x10008ce5
jb 0x10008cd0
cmp edi, 0x5d8a0000
jae 0x10008ce5
mov eax, edi
mov ecx, edx
shld ecx, eax, 2
shl eax, 2
add edi, eax
adc edx, ecx
shld edx, edi, 1
add edi, edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x23c], edi
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], edx
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0xac
lea eax, [ebp - 0x1e4]
push 0
push eax
call fcn.1015bd90
add esp, 0xc
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1e4]
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
lea eax, [ebp - 0x200]
push 0x10192d88
push eax
call fcn.10003fb0
add esp, 0x20
lea eax, [ebp - 0x200]
push 0x127500
push eax
call fcn.10035000
add esp, 8
test eax, eax
je 0x10008e34
mov edi, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x214]
push ecx
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x10008db8
mov ecx, eax
call fcn.100081a0
add dword [edi + 4], 0x18
jmp 0x10008dc0
push eax
mov ecx, edi
call fcn.10007e50
mov eax, dword [ebp - 0x1f8]
inc eax
mov dword [ebp - 0x1f8], eax
cmp eax, dword [ebp + 0x10]
jl 0x10008e34
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.100082a0
or edi, 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.10090e20
lea ecx, [ebp - 0x234]
call fcn.10090b40
lea ecx, [ebp - 0x254]
call fcn.10090a00
lea ecx, [ebp - 0x234]
call fcn.10090940
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008ee9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10008ee9
lea ecx, [ebp - 0x254]
call fcn.10090f50
mov edx, dword [ebp - 0x200]
or edi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008e63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x208]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008e80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008e9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x210]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008eba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x214]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008840
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10008840
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1f8], eax
setne al
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1ec]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10008f1c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1013724c
mov esp, ebp
pop ebp
ret 0xc
push 0x80
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1bc]
call fcn.10004a20
add esp, 0xc
call fcn.10005960
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004a20
add esp, 0xc
call fcn.10005960
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004a20
add esp, 0xc
call fcn.10005960
int3