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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013daae
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x101811b8]
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 0x10008c11
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 0x10008c0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x100094f2
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.10005f50
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.10009700
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 0x10008cb2
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 0x10008c95
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 0x10008c00
lea ecx, [ebp - 0x234]
call fcn.1005dda0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1bc], eax
test esi, esi
jne 0x10008cde
xor eax, eax
mov dword [ebp - 0x1bc], eax
jmp 0x10008dc1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ce3
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.10004ef0
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 0x10008db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008dad
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.10004ef0
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 0x10008db3
mov ecx, dword [ebp - 0x1e8]
test ecx, ecx
jne 0x10009510
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.1005e6e0
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x10008dee
push eax
call fcn.1011dc49
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.1005e360
mov byte [ebp - 4], 5
or edi, 0xffffffff
nop dword [eax]
lea ecx, [ebp - 0x254]
call fcn.1005e320
test al, al
jne 0x100093b4
mov ecx, dword [ebp - 0x21c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x21c], ecx
cmp eax, dword [ebp + 0xc]
jge 0x100093b4
lea ecx, [ebp - 0x214]
call fcn.10003470
push 0x101469cc
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.1005e510
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x10008e7d
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x10008f58
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008e82
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.10004f70
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 0x10008f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008f44
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.10004f70
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 0x10008f4a
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x1000952f
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 7
test edx, edx
jne 0x10008f64
xor ecx, ecx
jmp 0x10008f7f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008f70
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20c]
call fcn.10006e00
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x10008fa9
push eax
call fcn.1011dc49
add esp, 4
push 0x101469dc
lea ecx, [ebp - 0x254]
call fcn.1005e510
mov dword [ebp - 0x1e8], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test eax, eax
jne 0x10008fdc
xor edx, edx
mov dword [ebp - 0x138], edx
jmp 0x100090b7
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008fe1
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.10004f70
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 0x100090a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100090a3
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.10004f70
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 0x100090a9
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
jne 0x1000954e
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 8
test edx, edx
jne 0x100090c3
xor ecx, ecx
jmp 0x100090df
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100090d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x210]
call fcn.10006e00
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x10009109
push eax
call fcn.1011dc49
add esp, 4
push 0
push str.visit_count
lea ecx, [ebp - 0x254]
call fcn.1005e5e0
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 0x1000919c
cmp dword [edi + 0xc], 0
jl 0x1000918d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x1000918d
push edx
call fcn.10005f50
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 0x10009182
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 0x1000919c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x214]
call fcn.10006e00
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 0x100091be
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.1000d6f0
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 0x1000923c
cmp dword [edi + 0xc], 0
jl 0x1000922d
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x1000922d
push edx
call fcn.10005f50
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 0x10009222
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 0x1000923c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x208]
call fcn.10006e00
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 0x1000925e
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.1005e590
fstp qword [ebp - 0x1f4]
movsd xmm0, qword [ebp - 0x1f4]
call fcn.1010c410
mov edi, eax
cmp edx, 0x1634578
ja 0x100092b5
jb 0x100092a0
cmp edi, 0x5d8a0000
jae 0x100092b5
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.10117810
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 0x10146cd8
push eax
call fcn.10004580
add esp, 0x20
lea eax, [ebp - 0x200]
push 0x127500
push eax
call fcn.10034280
add esp, 8
test eax, eax
je 0x10009404
mov edi, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x214]
push ecx
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x10009388
mov ecx, eax
call fcn.10008770
add dword [edi + 4], 0x18
jmp 0x10009390
push eax
mov ecx, edi
call fcn.10008420
mov eax, dword [ebp - 0x1f8]
inc eax
mov dword [ebp - 0x1f8], eax
cmp eax, dword [ebp + 0x10]
jl 0x10009404
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.10008870
or edi, 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.1005e530
lea ecx, [ebp - 0x234]
call fcn.1005e250
lea ecx, [ebp - 0x254]
call fcn.1005e110
lea ecx, [ebp - 0x234]
call fcn.1005e050
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100094b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100094b9
lea ecx, [ebp - 0x254]
call fcn.1005e660
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 0x10009433
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 0x10009450
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 0x1000946d
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 0x1000948a
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 0x10008e10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10008e10
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 0x100094ec
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.1010c1dc
mov esp, ebp
pop ebp
ret 0xc
push 0x80
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1bc]
call fcn.10004ff0
add esp, 0xc
call fcn.10005f30
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004ff0
add esp, 0xc
call fcn.10005f30
push 0x80
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call fcn.10004ff0
add esp, 0xc
call fcn.10005f30
int3