Function at 0x1401f7ac0
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 0x1401f7b13
mov byte [rcx + 0x18], r13b
call fcn.1401f7f50
movaps xmm1, xmm6
lea rcx, [rsp + 0x70]
call fcn.1401f7850
mov r8, rax
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.1401f7870
nop
lea rax, vtable.Core::TimeSpan.0
mov qword [rsp + 0x70], rax
lea rdx, [rdi + 0x20]
mov rcx, r12
call fcn.1400e9a70
test al, al
je 0x1401f7b54
mov al, 1
jmp 0x1401f7f17
mov eax, dword [rsp + 0x68]
cmp eax, dword [rdi + 0x48]
jne 0x1401f7b75
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x150], rax
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x30], rax
jmp 0x1401f7bb3
test eax, eax
jne 0x1401f7b97
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 0x1401f7bb3
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 0x1401f7b4d
cmp dword [rsp + 0x68], 1
jne 0x1401f7bd9
mov rax, qword [rsp + 0x60]
jmp 0x1401f7bef
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.14016fa50
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.1401f78a0
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.1401fcfe0
nop
mov ecx, 0x20
call fcn.1402b6dbc
mov qword [rsp + 0x150], rax
test rax, rax
je 0x1401f7c6d
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140205a10
mov r14, rax
jmp 0x1401f7c70
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 0x1401f7cc7
mov ecx, 4
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x1401f7cb6
mov dword [rax], r13d
mov qword [rsp + 0xb8], rax
jmp 0x1401f7cc1
mov rbx, r13
mov qword [rsp + 0xb8], rbx
mov dword [rbx], 1
mov ecx, 0x18
call fcn.1402b6dbc
mov qword [rsp + 0x150], rax
test rax, rax
je 0x1401f7cee
mov rdx, r14
mov rcx, rax
call fcn.14020d000
mov rsi, rax
jmp 0x1401f7cf1
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 0x1401f7d48
mov ecx, 4
call fcn.1402b6dbc
mov rdi, rax
test rax, rax
je 0x1401f7d37
mov dword [rax], r13d
mov qword [rsp + 0xa0], rax
jmp 0x1401f7d42
mov rdi, r13
mov qword [rsp + 0xa0], r13
mov dword [rdi], 1
mov r15, qword [rsp + 0x170]
movsd xmm7, qword [0x140372150]
xorps xmm8, xmm8
nop dword [rax]
mov rcx, qword [rsi + 0x10]
mov rcx, qword [rcx]
call fcn.14023aa00
cmp eax, 0x64
jne 0x1401f7ea0
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14020d380
nop
mov edx, 1
mov rcx, rsi
call fcn.14020d260
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1401f7900
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 0x1401f7e77
comisd xmm6, xmm0
jb 0x1401f7e77
movsd qword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401f7e08
lea rax, [0x140346ce0]
mov qword [rsp + 0x48], rax
jmp 0x1401f7e33
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x48]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14011ba20
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xe0]
mov rcx, r15
call fcn.1401f76f0
nop
cmp dword [rsp + 0x50], 0
jle 0x1401f7e77
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
nop
lea rax, vtable.Core::DateTime.0
mov qword [rsp + 0xc0], rax
cmp dword [rsp + 0x38], 0
jle 0x1401f7d60
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
jmp 0x1401f7d60
test rdi, rdi
je 0x1401f7eca
mov eax, dword [rdi]
test eax, eax
jle 0x1401f7eaf
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x1401f7eca
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
mov rcx, rdi
call fcn.1402150f0
nop
test rbx, rbx
je 0x1401f7ef9
mov eax, dword [rbx]
test eax, eax
jle 0x1401f7ed9
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x1401f7ef9
test r14, r14
je 0x1401f7ef0
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rbx
call fcn.1402150f0
nop
cmp dword [rsp + 0x88], 0
jle 0x1401f7f11
mov rcx, qword [rsp + 0x80]
call fcn.1402b7350
nop
mov al, 1
jmp 0x1401f7f17
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