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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101506fe
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10198e28]
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 0x10008241
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 0x1000823a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x10008b22
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.10005580
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.10008d30
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 0x100082e2
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 0x100082c5
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 0x10008230
lea ecx, [ebp - 0x234]
call fcn.10074f40
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1bc], eax
test esi, esi
jne 0x1000830e
xor eax, eax
mov dword [ebp - 0x1bc], eax
jmp 0x100083f1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008313
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.10004520
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 0x100083e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100083dd
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.10004520
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 0x100083e3
mov ecx, dword [ebp - 0x1e8]
test ecx, ecx
jne 0x10008b40
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.10075880
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x1000841e
push eax
call fcn.1012f829
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.10075500
mov byte [ebp - 4], 5
or edi, 0xffffffff
nop dword [eax]
lea ecx, [ebp - 0x254]
call fcn.100754c0
test al, al
jne 0x100089e4
mov ecx, dword [ebp - 0x21c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x21c], ecx
cmp eax, dword [ebp + 0xc]
jge 0x100089e4
lea ecx, [ebp - 0x214]
call fcn.10002a70
push 0x1015b9dc
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.100756b0
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x100084ad
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x10008588
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100084b2
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.100045a0
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 0x1000857a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008574
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.100045a0
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 0x1000857a
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x10008b5f
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 7
test edx, edx
jne 0x10008594
xor ecx, ecx
jmp 0x100085af
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100085a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20c]
call fcn.10006430
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x100085d9
push eax
call fcn.1012f829
add esp, 4
push 0x1015b9ec
lea ecx, [ebp - 0x254]
call fcn.100756b0
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x1000860c
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x100086e7
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008611
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.100045a0
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 0x100086d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100086d3
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.100045a0
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 0x100086d9
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x10008b7e
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 8
test edx, edx
jne 0x100086f3
xor ecx, ecx
jmp 0x1000870f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008700
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x210]
call fcn.10006430
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x10008739
push eax
call fcn.1012f829
add esp, 4
push 0
push str.visit_count
lea ecx, [ebp - 0x254]
call fcn.10075780
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 0x100087cc
cmp dword [edi + 0xc], 0
jl 0x100087bd
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x100087bd
push edx
call fcn.10005580
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 0x100087b2
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 0x100087cc
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x214]
call fcn.10006430
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 0x100087ee
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.1000cd30
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 0x1000886c
cmp dword [edi + 0xc], 0
jl 0x1000885d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x1000885d
push edx
call fcn.10005580
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 0x10008852
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 0x1000886c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x208]
call fcn.10006430
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 0x1000888e
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.10075730
fstp qword [ebp - 0x1f4]
movsd xmm0, qword [ebp - 0x1f4]
call fcn.1011bd30
mov edi, eax
cmp edx, 0x1634578
ja 0x100088e5
jb 0x100088d0
cmp edi, 0x5d8a0000
jae 0x100088e5
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.101293f0
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 0x1015bce8
push eax
call fcn.10003bb0
add esp, 0x20
lea eax, [ebp - 0x200]
push 0x127500
push eax
call fcn.100332a0
add esp, 8
test eax, eax
je 0x10008a34
mov edi, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x214]
push ecx
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x100089b8
mov ecx, eax
call fcn.10007da0
add dword [edi + 4], 0x18
jmp 0x100089c0
push eax
mov ecx, edi
call fcn.10007a50
mov eax, dword [ebp - 0x1f8]
inc eax
mov dword [ebp - 0x1f8], eax
cmp eax, dword [ebp + 0x10]
jl 0x10008a34
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.10007ea0
or edi, 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.100756d0
lea ecx, [ebp - 0x234]
call fcn.100753f0
lea ecx, [ebp - 0x254]
call fcn.100752b0
lea ecx, [ebp - 0x234]
call fcn.100751f0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008ae9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10008ae9
lea ecx, [ebp - 0x254]
call fcn.10075800
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 0x10008a63
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 0x10008a80
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 0x10008a9d
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 0x10008aba
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 0x10008440
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10008440
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 0x10008b1c
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.1011bafc
mov esp, ebp
pop ebp
ret 0xc
push 0x80
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1bc]
call fcn.10004620
add esp, 0xc
call fcn.10005560
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004620
add esp, 0xc
call fcn.10005560
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004620
add esp, 0xc
call fcn.10005560
int3