Function at 0x140163f30
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.1402b968c
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140163f8d
lea r8d, [rsi + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140207fa0
mov r12, rax
jmp 0x140163f90
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 0x140163fd8
mov ecx, 4
call fcn.1402b968c
mov r15, rax
test rax, rax
je 0x140163fc9
mov dword [rax], esi
mov qword [rsp + 0x58], rax
jmp 0x140163fd1
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 0x140163ff8
mov edx, 0x3e8
call fcn.14028ef70
lea rdx, [r12 + 0x10]
mov r8d, dword [r12 + 0x24]
mov rcx, qword [r12 + 0x28]
call fcn.140207e10
mov byte [r12 + 0x20], al
test al, al
je 0x1401645ed
mov rbx, qword [r13]
lea rdi, vtable.Core::Data::SqliteCommand.0
lea r14, [0x140348ca0]
mov qword [rsp + 0xd8], rbx
cmp rbx, qword [r13 + 8]
je 0x14016419a
cmp byte [rbx + 0x18], 0
je 0x140164191
mov r8, qword [rbx + 8]
lea rdx, str.DELETE_FROM_keywords_WHERE_Keyword_ls
lea rcx, [rsp + 0x38]
call fcn.1401ff700
nop
mov ecx, 0x20
call fcn.1402b968c
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401640cc
mov qword [rax], rdi
mov qword [rax + 0x10], 0
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x140164094
lea rax, [0x140348ca0]
mov qword [r14 + 8], rax
jmp 0x1401640b9
lea rcx, [rax + 8]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x44]
lea rcx, [r14 + 8]
call fcn.140200570
mov qword [r14 + 0x18], r12
jmp 0x1401640cf
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 0x140164116
mov ecx, 4
call fcn.1402b968c
mov rdi, rax
test rax, rax
je 0x140164108
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140164110
mov rdi, rsi
mov qword [rsp + 0x70], rsi
mov dword [rdi], 1
mov rcx, r14
call fcn.1402082a0
mov rax, qword [rbx]
mov byte [rax + 0x59], 1
test rdi, rdi
je 0x140164154
mov eax, dword [rdi]
test eax, eax
jle 0x140164134
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140164154
test r14, r14
je 0x14016414b
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402177e0
nop
jmp 0x140164172
lea r14, [0x140348ca0]
lea rdi, vtable.Core::Data::SqliteCommand.0
cmp dword [rsp + 0x40], 0
jle 0x140164191
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
add rbx, 0x20
jmp 0x14016402b
mov ecx, 0x20
call fcn.1402b968c
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x14016426b
mov qword [rsp + 0x30], 0
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.1401ff260
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.1402bd21c
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.140200570
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 0x140164234
mov qword [rdi + 8], r14
jmp 0x140164258
lea rcx, [rdi + 8]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.140200570
mov qword [rdi + 0x18], r12
jmp 0x140164276
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 0x1401642bd
mov ecx, 4
call fcn.1402b968c
mov rbx, rax
test rax, rax
je 0x1401642af
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x1401642b7
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 1
je 0x1401642e0
and r13d, 0xfffffffe
mov dword [rsp + 0xc0], r13d
cmp dword [rsp + 0x30], 0
jle 0x1401642e0
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
mov rcx, rdi
call fcn.1402081c0
mov r14d, eax
test rbx, rbx
je 0x140164319
mov ecx, dword [rbx]
test ecx, ecx
jle 0x1401642fa
dec ecx
mov dword [rbx], ecx
cmp dword [rbx], 0
jne 0x140164319
test rdi, rdi
je 0x140164311
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402177e0
test r14d, r14d
jne 0x1401645ab
lea ecx, [r14 + 0x20]
call fcn.1402b968c
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x1401643ed
mov qword [rsp + 0x30], 0
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.1401ff260
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.1402bd21c
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.140200570
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 0x1401643b6
lea rax, [0x140348ca0]
mov qword [rdi + 8], rax
jmp 0x1401643da
lea rcx, [rdi + 8]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.140200570
mov qword [rdi + 0x18], r12
jmp 0x1401643f0
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 0x140164437
mov ecx, 4
call fcn.1402b968c
mov rbx, rax
test rax, rax
je 0x140164429
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140164431
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 2
je 0x14016444e
cmp dword [rsp + 0x30], 0
jle 0x14016444e
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
mov rcx, rdi
call fcn.1402081c0
mov r14d, eax
test rbx, rbx
je 0x140164487
mov eax, dword [rbx]
test eax, eax
jle 0x140164468
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x140164487
test rdi, rdi
je 0x14016447f
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402177e0
test r14d, r14d
je 0x1401645ab
mov r8d, r14d
lea rdx, str.UPDATE_meta_SET_value_d_WHERE_KeyDefault_Search_Provider_ID
lea rcx, [rsp + 0x38]
call fcn.1401ff700
nop
mov ecx, 0x20
call fcn.1402b968c
mov rbx, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14016451d
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 0x1401644e6
lea rax, [0x140348ca0]
mov qword [rbx + 8], rax
jmp 0x14016450a
lea rcx, [rbx + 8]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x44]
lea rcx, [rbx + 8]
call fcn.140200570
mov qword [rbx + 0x18], r12
jmp 0x140164520
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 0x140164561
mov ecx, 4
call fcn.1402b968c
test rax, rax
je 0x140164556
mov dword [rax], esi
mov rsi, rax
mov qword [rsp + 0x70], rax
jmp 0x14016455b
mov qword [rsp + 0x70], rsi
mov dword [rsi], 1
mov rcx, rbx
call fcn.1402082a0
nop
test rsi, rsi
je 0x140164599
mov eax, dword [rsi]
test eax, eax
jle 0x140164579
dec eax
mov dword [rsi], eax
cmp dword [rsi], 0
jne 0x140164599
test rbx, rbx
je 0x140164590
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rsi
call fcn.1402177e0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401645ab
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
nop
jmp 0x1401645b7
test r15, r15
je 0x1401645e9
mov eax, dword [r15]
test eax, eax
jle 0x1401645c8
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x1401645e9
test r12, r12
je 0x1401645e1
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402177e0
mov al, 1
jmp 0x14016461d
test r15, r15
je 0x14016461b
mov eax, dword [r15]
test eax, eax
jle 0x1401645fe
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x14016461b
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402177e0
nop
xor al, al
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret