Function at 0x140162ca0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r8
mov rbx, rdx
xor esi, esi
mov dword [rsp + 0xc0], esi
lea ecx, [rsi + 0x30]
call fcn.1402b6dbc
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140162cfd
lea r8d, [rsi + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140205880
mov r12, rax
jmp 0x140162d00
mov r12, rsi
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteConnection_.0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r12
mov r15, rsi
mov qword [rsp + 0x58], rsi
test r12, r12
je 0x140162d48
mov ecx, 4
call fcn.1402b6dbc
mov r15, rax
test rax, rax
je 0x140162d39
mov dword [rax], esi
mov qword [rsp + 0x58], rax
jmp 0x140162d41
mov r15, rsi
mov qword [rsp + 0x58], rsi
mov dword [r15], 1
mov dword [r12 + 0x24], 0x3e8
mov rax, qword [r12 + 0x28]
mov rcx, qword [rax]
test rcx, rcx
je 0x140162d68
mov edx, 0x3e8
call fcn.14028c880
lea rdx, [r12 + 0x10]
mov r8d, dword [r12 + 0x24]
mov rcx, qword [r12 + 0x28]
call fcn.1402056f0
mov byte [r12 + 0x20], al
test al, al
je 0x14016335d
mov rbx, qword [r13]
lea rdi, vtable.Core::Data::SqliteCommand.0
lea r14, [0x140346ce0]
mov qword [rsp + 0xd8], rbx
cmp rbx, qword [r13 + 8]
je 0x140162f0a
cmp byte [rbx + 0x18], 0
je 0x140162f01
mov r8, qword [rbx + 8]
lea rdx, str.DELETE_FROM_keywords_WHERE_Keyword_ls
lea rcx, [rsp + 0x38]
call fcn.1401fcfe0
nop
mov ecx, 0x20
call fcn.1402b6dbc
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140162e3c
mov qword [rax], rdi
mov qword [rax + 0x10], 0
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x140162e04
lea rax, [0x140346ce0]
mov qword [r14 + 8], rax
jmp 0x140162e29
lea rcx, [rax + 8]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x44]
mov eax, dword [r14 + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x38]
mov rcx, qword [r14 + 8]
call fcn.1402ba94c
mov edx, dword [rsp + 0x44]
lea rcx, [r14 + 8]
call fcn.1401fde50
mov qword [r14 + 0x18], r12
jmp 0x140162e3f
mov r14, rsi
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteCommand_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r14
mov rdi, rsi
mov qword [rsp + 0x70], rsi
test r14, r14
je 0x140162e86
mov ecx, 4
call fcn.1402b6dbc
mov rdi, rax
test rax, rax
je 0x140162e78
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140162e80
mov rdi, rsi
mov qword [rsp + 0x70], rsi
mov dword [rdi], 1
mov rcx, r14
call fcn.140205b80
mov rax, qword [rbx]
mov byte [rax + 0x59], 1
test rdi, rdi
je 0x140162ec4
mov eax, dword [rdi]
test eax, eax
jle 0x140162ea4
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140162ec4
test r14, r14
je 0x140162ebb
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402150f0
nop
jmp 0x140162ee2
lea r14, [0x140346ce0]
lea rdi, vtable.Core::Data::SqliteCommand.0
cmp dword [rsp + 0x40], 0
jle 0x140162f01
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
add rbx, 0x20
jmp 0x140162d9b
mov ecx, 0x20
call fcn.1402b6dbc
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140162fdb
mov qword [rsp + 0x30], 0
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.1401fcb40
mov eax, dword [rsp + 0x30]
inc eax
movsxd rdx, eax
mov r9d, 0x70
lea r8, str.SELECT_COUNT___FROM_meta_INNER_JOIN_keywords_ON_keywords.id__meta.value_WHERE_KeyDefault_Search_Provider_ID
mov rcx, qword [rsp + 0x28]
call fcn.1402ba94c
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.1401fde50
nop
mov r13d, dword [rsp + 0xc0]
or r13d, 1
mov dword [rsp + 0xc0], r13d
lea rax, vtable.Core::Data::SqliteCommand.0
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov edx, dword [rsp + 0x34]
test edx, edx
jne 0x140162fa4
mov qword [rdi + 8], r14
jmp 0x140162fc8
lea rcx, [rdi + 8]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x34]
mov eax, dword [rdi + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x28]
mov rcx, qword [rdi + 8]
call fcn.1402ba94c
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.1401fde50
mov qword [rdi + 0x18], r12
jmp 0x140162fe6
mov rdi, rsi
mov r13d, dword [rsp + 0xc0]
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteCommand_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov rbx, rsi
mov qword [rsp + 0x70], rbx
test rdi, rdi
je 0x14016302d
mov ecx, 4
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x14016301f
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140163027
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 1
je 0x140163050
and r13d, 0xfffffffe
mov dword [rsp + 0xc0], r13d
cmp dword [rsp + 0x30], 0
jle 0x140163050
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
mov rcx, rdi
call fcn.140205aa0
mov r14d, eax
test rbx, rbx
je 0x140163089
mov ecx, dword [rbx]
test ecx, ecx
jle 0x14016306a
dec ecx
mov dword [rbx], ecx
cmp dword [rbx], 0
jne 0x140163089
test rdi, rdi
je 0x140163081
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402150f0
test r14d, r14d
jne 0x14016331b
lea ecx, [r14 + 0x20]
call fcn.1402b6dbc
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x14016315d
mov qword [rsp + 0x30], 0
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.1401fcb40
mov eax, dword [rsp + 0x30]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 0x1f]
lea r8, str.SELECT_id_FROM_keywords_LIMIT_1
mov rcx, qword [rsp + 0x28]
call fcn.1402ba94c
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.1401fde50
nop
or r13d, 2
mov dword [rsp + 0xc0], r13d
lea rax, vtable.Core::Data::SqliteCommand.0
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov edx, dword [rsp + 0x34]
test edx, edx
jne 0x140163126
lea rax, [0x140346ce0]
mov qword [rdi + 8], rax
jmp 0x14016314a
lea rcx, [rdi + 8]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x34]
mov eax, dword [rdi + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x28]
mov rcx, qword [rdi + 8]
call fcn.1402ba94c
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.1401fde50
mov qword [rdi + 0x18], r12
jmp 0x140163160
mov rdi, rsi
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteCommand_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov rbx, rsi
mov qword [rsp + 0x70], rbx
test rdi, rdi
je 0x1401631a7
mov ecx, 4
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x140163199
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x1401631a1
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 2
je 0x1401631be
cmp dword [rsp + 0x30], 0
jle 0x1401631be
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
mov rcx, rdi
call fcn.140205aa0
mov r14d, eax
test rbx, rbx
je 0x1401631f7
mov eax, dword [rbx]
test eax, eax
jle 0x1401631d8
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x1401631f7
test rdi, rdi
je 0x1401631ef
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402150f0
test r14d, r14d
je 0x14016331b
mov r8d, r14d
lea rdx, str.UPDATE_meta_SET_value_d_WHERE_KeyDefault_Search_Provider_ID
lea rcx, [rsp + 0x38]
call fcn.1401fcfe0
nop
mov ecx, 0x20
call fcn.1402b6dbc
mov rbx, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14016328d
lea rax, vtable.Core::Data::SqliteCommand.0
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x140163256
lea rax, [0x140346ce0]
mov qword [rbx + 8], rax
jmp 0x14016327a
lea rcx, [rbx + 8]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x44]
mov eax, dword [rbx + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
call fcn.1402ba94c
mov edx, dword [rsp + 0x44]
lea rcx, [rbx + 8]
call fcn.1401fde50
mov qword [rbx + 0x18], r12
jmp 0x140163290
mov rbx, rsi
lea rax, vtable.Core::SharedPtr_class_Core::Data::SqliteCommand_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
test rbx, rbx
je 0x1401632d1
mov ecx, 4
call fcn.1402b6dbc
test rax, rax
je 0x1401632c6
mov dword [rax], esi
mov rsi, rax
mov qword [rsp + 0x70], rax
jmp 0x1401632cb
mov qword [rsp + 0x70], rsi
mov dword [rsi], 1
mov rcx, rbx
call fcn.140205b80
nop
test rsi, rsi
je 0x140163309
mov eax, dword [rsi]
test eax, eax
jle 0x1401632e9
dec eax
mov dword [rsi], eax
cmp dword [rsi], 0
jne 0x140163309
test rbx, rbx
je 0x140163300
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rsi
call fcn.1402150f0
nop
cmp dword [rsp + 0x40], 0
jle 0x14016331b
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
nop
jmp 0x140163327
test r15, r15
je 0x140163359
mov eax, dword [r15]
test eax, eax
jle 0x140163338
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x140163359
test r12, r12
je 0x140163351
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402150f0
mov al, 1
jmp 0x14016338d
test r15, r15
je 0x14016338b
mov eax, dword [r15]
test eax, eax
jle 0x14016336e
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x14016338b
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402150f0
nop
xor al, al
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret