Function at 0x14022ecf4
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
lea rcx, [rsp + 0x58]
call fcn.140021fb8
test eax, eax
sete r12b
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x14022ed7a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
jne 0x14022f11d
mov qword [r14], rsi
lea r15, vtable.CppSQLite3DB.0
mov qword [rsp + 0x30], r15
and qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0x32
mov rcx, qword [r14]
test rcx, rcx
je 0x14022edb0
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x14022edb2
mov al, 1
test al, al
je 0x14022f10d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1401a9e20
mov r9, rdi
lea rsi, str.privateNetMozilla.cpp
mov r8, rsi
mov r12d, 0x104
mov edx, r12d
lea r13, [0x140472310]
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x217
lea r8, [rsp + 0x30]
mov edx, 0x17
lea ecx, [rdx - 0x14]
call fcn.14022e9d4
test al, al
je 0x14022f10d
lea rdx, str.begin_transaction_
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
lea rcx, [rsp + 0x68]
call fcn.140047624
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14022e2a4
mov r9, rdi
mov r8, rsi
mov edx, r12d
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x21e
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14022e174
mov r9, rdi
mov r8, rsi
mov edx, r12d
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x220
mov rcx, qword [r14]
test rcx, rcx
je 0x14022ee96
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x14022ee98
mov al, 1
test al, al
je 0x14022ef1b
cmp qword [rsp + 0x78], 0
je 0x14022ef1b
lea rcx, [rsp + 0x30]
call fcn.14022e104
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x225
lea rcx, [rsp + 0x30]
call fcn.14022e0d4
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x227
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14022df64
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x229
mov rcx, qword [r14]
test rcx, rcx
je 0x14022ef2b
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x14022ef2d
mov al, 1
test al, al
je 0x14022f0e7
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.UPDATE_moz_places_SET_frecency___MAX_visit_count__1__WHERE_id_IN_SELECT_h.id_FROM_moz_places_h_WHERE_EXISTS__SELECT_id_FROM_moz_bookmarks_WHERE_fk__h.id__OR_EXISTS__SELECT_id_FROM_moz_annos_WHERE_place_id__h.id_AND_expiration_
lea rcx, [rsp + 0x48]
call fcn.14001c5ec
mov r8d, 4
lea rdx, str._d___
lea rcx, [rsp + 0x48]
call fcn.14000d638
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
lea rdx, str.UPDATE_moz_places_SET_frecency__0_WHERE_id_IN__SELECT_h.id_FROM_moz_places_h_LEFT_OUTER_JOIN_moz_bookmarks_b_ON_h.id__b.fk_WHERE_frecency___0_AND__b.parent_IN__SELECT_annos.item_id_FROM_moz_anno_attributes_attrs_JOIN_moz_items_annos_annos_ON_attrs.id__annos.anno_attribute_id_WHERE_attrs.name__livemark_feedURI__AND_visit_count__0__OR_SUBSTR_h.url__1__6___place:_
lea rcx, [rsp + 0x48]
call fcn.14001c5ec
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x263
lea rdx, str.UPDATE_moz_places_SET_visit_count__0_where_id_not_in__select_place_id_from_moz_annos_where_anno_attribute_id_in__select_id_from_moz_anno_attributes_where_name_LIKE_downloads_____
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x267
lea rdx, str.UPDATE_moz_places_SET_last_visit_date__null_where_id_not_in__select_place_id_from_moz_annos_where_anno_attribute_id_in__select_id_from_moz_anno_attributes_where_name_LIKE_downloads_____
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
nop
jmp 0x14022f02d
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x270
lea rcx, [rsp + 0x30]
call fcn.14022de94
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x273
lea rcx, [rsp + 0x30]
call fcn.14022de64
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x275
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14022e564
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call fcn.1400bfe64
mov dword [0x14048a900], 0x27a
lea rdx, str.commit_transaction_
lea rcx, [rsp + 0x30]
call fcn.1401aa3d0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14022f0e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rsp + 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140004130
nop
mov rcx, qword [rsp + 0x70]
call fcn.1400be0f4
nop
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.1401a9d90
nop
mov al, 1
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret