Function at 0x1401fd820
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rax - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmm6, xmm3
mov r12, r8
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x150], r13d
cmp byte [rcx + 0x18], r13b
je 0x1401fd873
mov byte [rcx + 0x18], r13b
call fcn.1401fdcb0
movaps xmm1, xmm6
lea rcx, [rsp + 0x70]
call fcn.1401fd5b0
mov r8, rax
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.1401fd5d0
nop
lea rax, vtable.Core::TimeSpan.0
mov qword [rsp + 0x70], rax
lea rdx, [rdi + 0x20]
mov rcx, r12
call fcn.1400ec280
test al, al
je 0x1401fd8b4
mov al, 1
jmp 0x1401fdc77
mov eax, dword [rsp + 0x68]
cmp eax, dword [rdi + 0x48]
jne 0x1401fd8d5
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x150], rax
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x30], rax
jmp 0x1401fd913
test eax, eax
jne 0x1401fd8f7
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x30], rax
jmp 0x1401fd913
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x150], rax
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x1401fd8ad
cmp dword [rsp + 0x68], 1
jne 0x1401fd939
mov rax, qword [rsp + 0x60]
jmp 0x1401fd94f
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.140172920
mov rax, qword [rax + 8]
movabs rcx, 0xfe624e212ac18000
add rcx, rax
movabs rax, 0x6666666666666667
imul rcx
mov rbx, rdx
sar rbx, 2
mov rax, rbx
shr rax, 0x3f
add rbx, rax
mov rcx, r12
call fcn.1401fd600
mov r9, rax
mov r8, rbx
lea rdx, str.SELECT_url__visit_date_FROM___moz_places__moz_historyvisits_WHERE__moz_places.id__moz_historyvisits.place_id_AND____visit_date____I64u_AND_visit_date____I64u_
lea rcx, [rsp + 0x80]
call fcn.140202d40
nop
mov ecx, 0x20
call fcn.1402bcb4c
mov qword [rsp + 0x150], rax
test rax, rax
je 0x1401fd9cd
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14020c020
mov r14, rax
jmp 0x1401fd9d0
mov r14, r13
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteCommand_.0
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r14
mov rbx, r13
mov qword [rsp + 0xb8], rbx
test r14, r14
je 0x1401fda27
mov ecx, 4
call fcn.1402bcb4c
mov rbx, rax
test rax, rax
je 0x1401fda16
mov dword [rax], r13d
mov qword [rsp + 0xb8], rax
jmp 0x1401fda21
mov rbx, r13
mov qword [rsp + 0xb8], rbx
mov dword [rbx], 1
mov ecx, 0x18
call fcn.1402bcb4c
mov qword [rsp + 0x150], rax
test rax, rax
je 0x1401fda4e
mov rdx, r14
mov rcx, rax
call fcn.140212cc0
mov rsi, rax
jmp 0x1401fda51
mov rsi, r13
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteDataReader_.0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rsi
mov rdi, r13
mov qword [rsp + 0xa0], r13
test rsi, rsi
je 0x1401fdaa8
mov ecx, 4
call fcn.1402bcb4c
mov rdi, rax
test rax, rax
je 0x1401fda97
mov dword [rax], r13d
mov qword [rsp + 0xa0], rax
jmp 0x1401fdaa2
mov rdi, r13
mov qword [rsp + 0xa0], r13
mov dword [rdi], 1
mov r15, qword [rsp + 0x170]
movsd xmm7, qword [0x140379530]
xorps xmm8, xmm8
nop dword [rax]
mov rcx, qword [rsi + 0x10]
mov rcx, qword [rcx]
call fcn.140240730
cmp eax, 0x64
jne 0x1401fdc00
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140213040
nop
mov edx, 1
mov rcx, rsi
call fcn.140212f20
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1401fd660
nop
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400cb050
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rax + 8]
divsd xmm0, xmm7
lea rax, vtable.Core::TimeSpan.0
mov qword [rsp + 0x70], rax
comisd xmm8, xmm0
ja 0x1401fdbd7
comisd xmm6, xmm0
jb 0x1401fdbd7
movsd qword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401fdb68
lea rax, [0x14034d1a0]
mov qword [rsp + 0x48], rax
jmp 0x1401fdb93
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x48]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14011e690
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xe0]
mov rcx, r15
call fcn.1401fd450
nop
cmp dword [rsp + 0x50], 0
jle 0x1401fdbd7
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
nop
lea rax, vtable.Core::DateTime.0
mov qword [rsp + 0xc0], rax
cmp dword [rsp + 0x38], 0
jle 0x1401fdac0
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
jmp 0x1401fdac0
test rdi, rdi
je 0x1401fdc2a
mov eax, dword [rdi]
test eax, eax
jle 0x1401fdc0f
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x1401fdc2a
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
mov rcx, rdi
call fcn.14021ae20
nop
test rbx, rbx
je 0x1401fdc59
mov eax, dword [rbx]
test eax, eax
jle 0x1401fdc39
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x1401fdc59
test r14, r14
je 0x1401fdc50
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rbx
call fcn.14021ae20
nop
cmp dword [rsp + 0x88], 0
jle 0x1401fdc71
mov rcx, qword [rsp + 0x80]
call fcn.1402bd0e0
nop
mov al, 1
jmp 0x1401fdc77
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret