Function at 0x140156840
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.14029806c
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x14015689d
lea r8d, [rsi + 2]
mov rdx, rbx
mov rcx, rax
call fcn.1401f1b80
mov r12, rax
jmp 0x1401568a0
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 0x1401568e8
mov ecx, 4
call fcn.14029806c
mov r15, rax
test rax, rax
je 0x1401568d9
mov dword [rax], esi
mov qword [rsp + 0x58], rax
jmp 0x1401568e1
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 0x140156908
mov edx, 0x3e8
call fcn.140278a50
lea rdx, [r12 + 0x10]
mov r8d, dword [r12 + 0x24]
mov rcx, qword [r12 + 0x28]
call fcn.1401f19f0
mov byte [r12 + 0x20], al
test al, al
je 0x140156efd
mov rbx, qword [r13]
lea rdi, vtable.Core::Data::SqliteCommand.0
lea r14, [0x140323de0]
mov qword [rsp + 0xd8], rbx
cmp rbx, qword [r13 + 8]
je 0x140156aaa
cmp byte [rbx + 0x18], 0
je 0x140156aa1
mov r8, qword [rbx + 8]
lea rdx, str.DELETE_FROM_keywords_WHERE_Keyword_ls
lea rcx, [rsp + 0x38]
call fcn.1401e94c0
nop
mov ecx, 0x20
call fcn.14029806c
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401569dc
mov qword [rax], rdi
mov qword [rax + 0x10], 0
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x1401569a4
lea rax, [0x140323de0]
mov qword [r14 + 8], rax
jmp 0x1401569c9
lea rcx, [rax + 8]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x44]
lea rcx, [r14 + 8]
call fcn.1401ea290
mov qword [r14 + 0x18], r12
jmp 0x1401569df
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 0x140156a26
mov ecx, 4
call fcn.14029806c
mov rdi, rax
test rax, rax
je 0x140156a18
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140156a20
mov rdi, rsi
mov qword [rsp + 0x70], rsi
mov dword [rdi], 1
mov rcx, r14
call fcn.1401f1e80
mov rax, qword [rbx]
mov byte [rax + 0x59], 1
test rdi, rdi
je 0x140156a64
mov eax, dword [rdi]
test eax, eax
jle 0x140156a44
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140156a64
test r14, r14
je 0x140156a5b
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402012c0
nop
jmp 0x140156a82
lea r14, [0x140323de0]
lea rdi, vtable.Core::Data::SqliteCommand.0
cmp dword [rsp + 0x40], 0
jle 0x140156aa1
mov rcx, qword [rsp + 0x38]
call fcn.140298600
add rbx, 0x20
jmp 0x14015693b
mov ecx, 0x20
call fcn.14029806c
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140156b7b
mov qword [rsp + 0x30], 0
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.1401e9030
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.14029b4d8
mov edx, 0x70
lea rcx, [rsp + 0x28]
call fcn.1401ea290
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 0x140156b44
mov qword [rdi + 8], r14
jmp 0x140156b68
lea rcx, [rdi + 8]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.1401ea290
mov qword [rdi + 0x18], r12
jmp 0x140156b86
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 0x140156bcd
mov ecx, 4
call fcn.14029806c
mov rbx, rax
test rax, rax
je 0x140156bbf
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140156bc7
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 1
je 0x140156bf0
and r13d, 0xfffffffe
mov dword [rsp + 0xc0], r13d
cmp dword [rsp + 0x30], 0
jle 0x140156bf0
mov rcx, qword [rsp + 0x28]
call fcn.140298600
mov rcx, rdi
call fcn.1401f1da0
mov r14d, eax
test rbx, rbx
je 0x140156c29
mov ecx, dword [rbx]
test ecx, ecx
jle 0x140156c0a
dec ecx
mov dword [rbx], ecx
cmp dword [rbx], 0
jne 0x140156c29
test rdi, rdi
je 0x140156c21
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402012c0
test r14d, r14d
jne 0x140156ebb
lea ecx, [r14 + 0x20]
call fcn.14029806c
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140156cfd
mov qword [rsp + 0x30], 0
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.1401e9030
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.14029b4d8
lea edx, [r14 + 0x1f]
lea rcx, [rsp + 0x28]
call fcn.1401ea290
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 0x140156cc6
lea rax, [0x140323de0]
mov qword [rdi + 8], rax
jmp 0x140156cea
lea rcx, [rdi + 8]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x34]
lea rcx, [rdi + 8]
call fcn.1401ea290
mov qword [rdi + 0x18], r12
jmp 0x140156d00
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 0x140156d47
mov ecx, 4
call fcn.14029806c
mov rbx, rax
test rax, rax
je 0x140156d39
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x140156d41
mov rbx, rsi
mov qword [rsp + 0x70], rbx
mov dword [rbx], 1
test r13b, 2
je 0x140156d5e
cmp dword [rsp + 0x30], 0
jle 0x140156d5e
mov rcx, qword [rsp + 0x28]
call fcn.140298600
mov rcx, rdi
call fcn.1401f1da0
mov r14d, eax
test rbx, rbx
je 0x140156d97
mov eax, dword [rbx]
test eax, eax
jle 0x140156d78
dec eax
mov dword [rbx], eax
cmp dword [rbx], 0
jne 0x140156d97
test rdi, rdi
je 0x140156d8f
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, rbx
call fcn.1402012c0
test r14d, r14d
je 0x140156ebb
mov r8d, r14d
lea rdx, str.UPDATE_meta_SET_value_d_WHERE_KeyDefault_Search_Provider_ID
lea rcx, [rsp + 0x38]
call fcn.1401e94c0
nop
mov ecx, 0x20
call fcn.14029806c
mov rbx, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x140156e2d
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 0x140156df6
lea rax, [0x140323de0]
mov qword [rbx + 8], rax
jmp 0x140156e1a
lea rcx, [rbx + 8]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x44]
lea rcx, [rbx + 8]
call fcn.1401ea290
mov qword [rbx + 0x18], r12
jmp 0x140156e30
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 0x140156e71
mov ecx, 4
call fcn.14029806c
test rax, rax
je 0x140156e66
mov dword [rax], esi
mov rsi, rax
mov qword [rsp + 0x70], rax
jmp 0x140156e6b
mov qword [rsp + 0x70], rsi
mov dword [rsi], 1
mov rcx, rbx
call fcn.1401f1e80
nop
test rsi, rsi
je 0x140156ea9
mov eax, dword [rsi]
test eax, eax
jle 0x140156e89
dec eax
mov dword [rsi], eax
cmp dword [rsi], 0
jne 0x140156ea9
test rbx, rbx
je 0x140156ea0
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rsi
call fcn.1402012c0
nop
cmp dword [rsp + 0x40], 0
jle 0x140156ebb
mov rcx, qword [rsp + 0x38]
call fcn.140298600
nop
jmp 0x140156ec7
test r15, r15
je 0x140156ef9
mov eax, dword [r15]
test eax, eax
jle 0x140156ed8
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x140156ef9
test r12, r12
je 0x140156ef1
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402012c0
mov al, 1
jmp 0x140156f2d
test r15, r15
je 0x140156f2b
mov eax, dword [r15]
test eax, eax
jle 0x140156f0e
dec eax
mov dword [r15], eax
cmp dword [r15], 0
jne 0x140156f2b
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov rcx, r15
call fcn.1402012c0
nop
xor al, al
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret