Function at 0x18011cfa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov rbx, rcx
mov edi, r12d
mov qword [rsp + 0x48], r12
cmp dword [rcx + 0x20], edi
jne 0x180116eb5
cmp dword [rcx + 0x34], edi
je 0x180116ec2
call fcn.180116420
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x38], r12d
cmp qword [rbx + 0x90], rdi
jne 0x180116eee
mov rcx, rbx
call fcn.18010e410
mov qword [rbx + 0x88], rax
cmp dword [rbx + 0x3c], edi
jne 0x180116ef3
mov rcx, rbx
call fcn.18010e350
mov qword [rbx + 0x90], rax
cmp dword [rbx + 0x3c], edi
je 0x180116ef8
mov rsi, r12
jmp 0x180116f08
mov rax, qword [rbx + 0x90]
inc dword [rax]
mov rsi, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180116f20
call fcn.18010d960
mov qword [rbx + 0x90], r12
test rsi, rsi
je 0x180116f38
mov rdx, rsi
mov rcx, rbx
call fcn.180116c70
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.18010d960
test rdi, rdi
je 0x180116fc4
lea rcx, [rdi + 0x24]
mov qword [rsp + 0x50], rbp
mov esi, r12d
cmp dword [rcx], r12d
jne 0x180116f6b
nop word [rax + rax]
add rcx, 0x10
inc esi
cmp dword [rcx], r12d
je 0x180116f60
movsxd rbp, esi
cmp dword [rbx + 0x3c], r12d
jne 0x180116fa6
add rbp, rbp
cmp dword [rdi + rbp*8 + 0x24], r12d
jle 0x180116fa6
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, esi
mov rcx, rbx
mov dword [rsp + 0x40], 0x3e8
call fcn.180114af0
mov rdi, qword [rsp + 0x48]
cmp dword [rbx + 0x3c], r12d
je 0x180116f77
mov rbp, qword [rsp + 0x50]
cmp dword [rbx + 0x3c], r12d
jne 0x180116fbc
mov rdx, rdi
mov rcx, rbx
call fcn.18010e4c0
mov rcx, rdi
call fcn.18010d960
mov eax, dword [rbx + 0x3c]
mov dword [rbx + 0x3c], r12d
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov ebp, edx
mov rdi, rcx
cmp dword [rcx + 0x20], r12d
jne 0x180117001
cmp dword [rcx + 0x34], r12d
je 0x18011700e
call fcn.180116420
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x38], r12d
cmp qword [rdi + 0x90], r12
jne 0x18011703b
mov rcx, rdi
call fcn.18010e410
mov qword [rdi + 0x88], rax
cmp dword [rdi + 0x3c], r12d
jne 0x180117041
mov rcx, rdi
call fcn.18010e350
mov qword [rdi + 0x90], rax
cmp dword [rdi + 0x3c], r12d
je 0x180117046
mov rsi, r12
jmp 0x180117056
mov rax, qword [rdi + 0x90]
inc dword [rax]
mov rsi, qword [rdi + 0x90]
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1801170ff
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x90]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax + 0x94]
test rcx, rcx
je 0x18011708a
call fcn.18010d960
mov qword [rdi + 0x90], r12
test ebp, ebp
jns 0x1801170b3
mov rdx, rsi
mov rcx, rdi
call fcn.180116c70
mov rcx, rsi
mov rbx, rax
call fcn.18010d960
mov rsi, rbx
mov qword [rsp + 0x40], rbx
neg ebp
mov ebx, 1
test rsi, rsi
je 0x1801170f2
cmp dword [rsi + 0x1c], r12d
je 0x1801170f2
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov r8d, ebp
mov rcx, rdi
call fcn.180115430
test eax, eax
je 0x1801170ed
cmp dword [rdi + 0x3c], r12d
jne 0x1801170ed
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.18010e4c0
jmp 0x1801170f2
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18010d960
mov rbx, qword [rsp + 0x48]
mov eax, dword [rdi + 0x3c]
mov rbp, qword [rsp + 0x50]
mov dword [rdi + 0x3c], r12d
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov r11, qword [rcx + 0x18]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x40], 0
test rdx, rdx
je 0x18011d155
lea r9, str.delete_all
mov r10, rdx
lea rbp, [0x1801439c0]
sub r10, r9
nop
movzx ecx, byte [r9]
movzx eax, byte [r10 + r9]
cmp ecx, eax
jne 0x18011d018
test ecx, ecx
jne 0x18011d024
cmp dword [r11 + 0x40], ecx
jne 0x18011d029
lea rdx, str.delete_all_may_only_be_used_with_a_contentless_or_external_content_fts5_table
mov rcx, rbx
call fcn.18011cf60
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d03e
inc r9
jmp 0x18011cfe0
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180120db0
lea r8, str.rebuild
mov r9, rdi
sub r9, r8
nop dword [rax + rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18011d089
test ecx, ecx
jne 0x18011d095
cmp dword [r11 + 0x40], 1
jne 0x18011d09a
lea rdx, str.rebuild_may_not_be_used_with_a_contentless_fts5_table
mov rcx, rbx
call fcn.18011cf60
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d0af
inc r8
jmp 0x18011d050
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180120e50
lea r8, str.optimize
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18011d0ea
test ecx, ecx
jne 0x18011d0f6
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 8]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180116e90
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d0fb
inc r8
jmp 0x18011d0c0
lea r8, str.merge
mov r9, rdi
sub r9, r8
nop dword [rax + rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18011d144
test ecx, ecx
jne 0x18011d150
mov rcx, rsi
call sym.sqlite.dll_sqlite3_value_int
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 8]
mov edx, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180116fe0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d155
inc r8
jmp 0x18011d110
lea rcx, str.integrity_check
mov rdx, rdi
call sym.sqlite.dll_sqlite3_stricmp
test eax, eax
jne 0x18011d187
mov rcx, rsi
call sym.sqlite.dll_sqlite3_value_int
mov rcx, qword [rbx + 0x28]
mov edx, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180121b10
mov rcx, qword [rbx + 0x20]
call fcn.180119000
test eax, eax
jne 0x18011d1c8
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.180107790
test eax, eax
jne 0x18011d1c8
cmp dword [rsp + 0x40], eax
jne 0x18011d006
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
call fcn.180122530
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [rcx]
mov dword [rcx + 0x10], 0
mov rdi, rcx
mov rax, qword [rbx + 0x10]
mov r9, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
lea r8, str.DELETE_FROM__Q._q_data_DELETE_FROM__Q._q_idx_
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18011fcd0
test eax, eax
jne 0x180120e3d
cmp dword [rbx + 0x58], eax
je 0x180120e1a
mov rax, qword [rbx + 0x10]
mov r9, qword [rbx + 8]
mov rcx, qword [rbx]
lea r8, str.DELETE_FROM__Q._q_docsize_
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18011fcd0
test eax, eax
jne 0x180120e3d
mov rcx, qword [rdi + 8]
call fcn.1801185a0
test eax, eax
jne 0x180120e3d
lea r9d, [rax + 4]
lea rdx, str.version
xor r8d, r8d
mov rcx, rdi
call fcn.180122530
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov r11, rsp
push rbp
push r14
sub rsp, 0x88
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
xor eax, eax
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r15
mov r15, qword [rcx]
mov qword [r11 - 0x58], rax
xor r13d, r13d
xor r12d, r12d
mov r14, rcx
xor edi, edi
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], r13
mov qword [r11 - 0x40], r12
mov qword [r11 - 0x58], rcx
call 0x180120db0
mov ebp, eax
test eax, eax
jne 0x1801211f4
cmp dword [r14 + 0x10], edi
jne 0x180120ec1
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180118e00
mov dword [r14 + 0x10], 1
mov ebp, eax
test ebp, ebp
jne 0x1801211f4
mov qword [rsp + 0xb0], rbx
lea rbx, [r14 + 0x78]
mov qword [rsp + 0x80], rsi
cmp qword [rbx], rdi
jne 0x180120f40
mov rdi, qword [r14]
lea rcx, str.SELECT__s_FROM__s_AS_T
mov r8, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x60]
call sym.sqlite.dll_sqlite3_mprintf
mov rsi, rax
test rax, rax
jne 0x180120f06
lea ebp, [rax + 7]
jmp 0x180120f40
mov rax, qword [r14]
mov qword [rsp + 0x30], rbp
mov r9d, 0x85
inc dword [rax + 0x78]
mov rcx, qword [rdi]
or r8d, 0xffffffff
mov rdx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbp
call fcn.180087650
mov rcx, rsi
mov ebp, eax
mov rax, qword [r14]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov rdi, qword [rbx]
mov rcx, rdi
mov qword [rsp + 0xa0], rdi
call sym.sqlite.dll_sqlite3_reset
test ebp, ebp
jne 0x1801211e4
nop dword [rax + rax]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121184
xor edx, edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_int64
mov rbx, qword [r14 + 8]
xor esi, esi
lea rdx, [rbx + 0x18]
mov rbp, rax
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x58], esi
cmp qword [rdx], rsi
jne 0x180120fa8
mov rcx, qword [rbx]
lea r8, [rbx + 0x20]
call fcn.18010c6c0
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 0x28]
cmp rbp, rax
jl 0x180120fc6
jne 0x180120fb8
cmp dword [rbx + 0x30], esi
je 0x180120fc6
mov rax, qword [rbx]
mov ecx, dword [rax + 0x98]
cmp dword [rbx + 0x20], ecx
jle 0x180120fde
cmp dword [rbx + 0x20], esi
jne 0x180120fd0
cmp dword [rbx + 0x34], esi
je 0x180120fde
mov rcx, rbx
call fcn.180116420
mov dword [rbx + 0x20], esi
mov dword [rbx + 0x38], esi
inc dword [rbx + 0x38]
mov qword [rbx + 0x28], rbp
mov ebp, dword [rbx + 0x3c]
xor edx, edx
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x3c], esi
mov dword [rsp + 0x48], edx
test ebp, ebp
jne 0x180121147
nop dword [rax]
cmp edx, dword [r15 + 0x18]
jge 0x180121139
xor r8d, r8d
movsxd rcx, edx
mov dword [rsp + 0x4c], r8d
mov rax, qword [r15 + 0x28]
cmp byte [rcx + rax], r8b
jne 0x180121077
inc edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_text
mov edx, dword [rsp + 0x48]
mov rcx, rdi
inc edx
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
mov r11d, eax
test rbx, rbx
jne 0x180121046
xor ebp, ebp
jmp 0x180121072
mov rax, qword [r15 + 0x70]
lea rcx, [0x180120340]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r15 + 0x68]
mov r9, rbx
mov r8d, 4
mov dword [rsp + 0x20], r11d
call qword [rax + 0x10]
mov ebp, eax
mov r8d, dword [rsp + 0x4c]
lea ecx, [rsi + 9]
movsxd rdi, r8d
cmp r12d, ecx
jae 0x1801210bf
mov eax, 0x40
test r12d, r12d
cmovne eax, r12d
movsxd rbx, eax
mov eax, ecx
cmp rbx, rax
jae 0x1801210a0
add rbx, rbx
cmp rbx, rax
jb 0x180121098
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1801210d9
mov rdx, rbx
mov rcx, r13
call fcn.18000b480
test rax, rax
je 0x1801210d9
mov r12d, ebx
mov r13, rax
movsxd rcx, esi
add rcx, r13
cmp rdi, 0x7f
ja 0x1801210e0
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x18012110b
mov ebp, 7
jmp 0x18012110d
cmp rdi, 0x3fff
ja 0x180121103
mov rax, rdi
shr rax, 7
or al, 0x80
and dil, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dil
mov eax, 2
jmp 0x18012110b
mov rdx, rdi
call fcn.180010980
add esi, eax
movsxd rdx, dword [rsp + 0x48]
mov rcx, qword [r14 + 0x20]
movsxd rax, dword [rsp + 0x4c]
add qword [rcx + rdx*8], rax
mov edx, dword [rsp + 0x48]
mov rdi, qword [rsp + 0xa0]
inc edx
mov dword [rsp + 0x48], edx
test ebp, ebp
je 0x180121000
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], r12d
mov qword [rsp + 0x50], r13
inc qword [r14 + 0x18]
test ebp, ebp
jne 0x180121184
mov rax, qword [r14]
cmp dword [rax + 0x58], ebp
je 0x18012117a
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x50]
mov rcx, r14
call fcn.1801206f0
mov r12d, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x50]
mov ebp, eax
jmp 0x18012117c
xor ebp, ebp
test ebp, ebp
je 0x180120f60
test r13, r13
je 0x1801211e4
cmp dword [0x180171920], 0
je 0x1801211db
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1801211a4
call qword [0x1801719a0]
mov rcx, r13
call qword [0x180171958]
dec qword [0x180181138]
mov rcx, r13
movsxd rdx, eax
sub qword [0x1801810f0], rdx
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1801211e4
call qword [0x1801719b0]
jmp 0x1801211e4
mov rcx, r13
call qword [0x180171948]
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x80]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
test ebp, ebp
jne 0x18012122b
test eax, eax
jne 0x18012122d
mov rcx, r14
call fcn.180120900
add rsp, 0x88
pop r14
pop rbp
ret
mov eax, ebp
add rsp, 0x88
pop r14
pop rbp
ret
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov r12, qword [rcx]
xor eax, eax
mov edi, edx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
movsxd rax, dword [r12 + 0x18]
mov r14, rcx
lea rbx, [rax + rax*2]
shl rbx, 2
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180122143
test rbx, rbx
je 0x180122143
mov rcx, rbx
call fcn.18000b130
mov r15, rax
test rax, rax
je 0x180122143
movsxd rcx, dword [r12 + 0x18]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x70], r13
lea r8, [rcx*8]
xor edx, edx
mov rcx, rax
lea r13, [r8 + rax]
mov qword [rbp + 0x48], r13
call fcn.18012da30
mov ecx, dword [r12 + 0x40]
test ecx, ecx
je 0x180121bc6
cmp ecx, 2
jne 0x180121bbc
test edi, edi
jne 0x180121bc6
xor esi, esi
mov r8d, esi
jmp 0x1801220ae
xor esi, esi
lea rdi, [r14 + 0x78]
mov ebx, esi
cmp qword [rdi], rbx
jne 0x180121c35
mov rbx, qword [r14]
lea rcx, str.SELECT__s_FROM__s_AS_T
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
call sym.sqlite.dll_sqlite3_mprintf
mov r13, rax
test rax, rax
jne 0x180121bf7
lea ebx, [rsi + 7]
jmp 0x180121c31
mov rax, qword [r14]
mov qword [rsp + 0x30], rsi
mov r9d, 0x85
inc dword [rax + 0x78]
mov rcx, qword [rbx]
or r8d, 0xffffffff
mov rdx, r13
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call fcn.180087650
mov rcx, r13
mov ebx, eax
mov rax, qword [r14]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov r13, qword [rbp + 0x48]
mov rdi, qword [rdi]
mov rcx, rdi
mov qword [rbp + 0x50], rdi
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x1801220bd
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121e21
nop dword [rax]
xor edx, edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_int64
mov dword [rbp - 0x2c], esi
mov qword [rbp - 0x38], rax
cmp dword [r12 + 0x58], esi
je 0x180121c88
mov r8, r13
mov rdx, rax
mov rcx, r14
call fcn.180122270
mov ebx, eax
test ebx, ebx
jne 0x180121cd4
cmp dword [r12 + 0x5c], 1
jne 0x180121cd4
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180121ca9
mov rdi, rsi
mov ebx, 7
jmp 0x180121cd0
mov ecx, 0x1000
call fcn.18000b130
mov rdi, rax
test rax, rax
jne 0x180121cc0
lea ebx, [rax + 7]
jmp 0x180121cd0
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012da30
mov qword [rbp - 0x20], rdi
mov r14d, esi
mov r13, rsi
test ebx, ebx
jne 0x180121def
cmp r14d, dword [r12 + 0x18]
jge 0x180121def
mov rax, qword [r12 + 0x28]
cmp byte [r13 + rax], sil
jne 0x180121de1
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x2c], esi
cmp dword [r12 + 0x5c], 2
jne 0x180121d4c
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180121d21
mov rdi, rsi
mov ebx, 7
jmp 0x180121d48
mov ecx, 0x1000
call fcn.18000b130
mov rdi, rax
test rax, rax
jne 0x180121d38
lea ebx, [rax + 7]
jmp 0x180121d48
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012da30
mov qword [rbp - 0x20], rdi
test ebx, ebx
jne 0x180121dc4
mov rcx, qword [rbp + 0x50]
lea edx, [r14 + 1]
call sym.sqlite.dll_sqlite3_column_text
mov rcx, qword [rbp + 0x50]
lea edx, [r14 + 1]
mov rdi, rax
call sym.sqlite.dll_sqlite3_column_bytes
mov r11d, eax
test rdi, rdi
jne 0x180121d79
mov ebx, esi
jmp 0x180121daa
mov rax, qword [r12 + 0x70]
lea rcx, [0x1801218b0]
lea rdx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r12 + 0x68]
mov r9, rdi
mov r8d, 4
mov dword [rsp + 0x20], r11d
call qword [rax + 0x10]
mov ebx, eax
test eax, eax
jne 0x180121dc4
cmp dword [r12 + 0x58], esi
je 0x180121dc4
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + r13*4]
cmp dword [rbp - 0x2c], eax
mov eax, 0x10b
cmovne ebx, eax
movsxd rax, dword [rbp - 0x2c]
add qword [r15 + r13*8], rax
cmp dword [r12 + 0x5c], 2
jne 0x180121de1
mov rcx, qword [rbp - 0x20]
call fcn.180105ae0
mov qword [rbp - 0x20], rsi
inc r14d
inc r13
test ebx, ebx
je 0x180121ce2
mov rcx, qword [rbp - 0x20]
call fcn.180105ae0
mov rdi, qword [rbp + 0x50]
mov qword [rbp - 0x20], rsi
test ebx, ebx
jne 0x180121e1d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
mov r14, qword [rbp + 0x38]
mov r13, qword [rbp + 0x48]
cmp eax, 0x64
je 0x180121c60
mov r14, qword [rbp + 0x38]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x1801220bd
mov ebx, eax
test eax, eax
jne 0x1801220bd
mov ebx, esi
cmp dword [r14 + 0x10], ebx
jne 0x180121e5a
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180118e00
mov dword [r14 + 0x10], esi
mov ebx, eax
mov r8d, esi
test ebx, ebx
jne 0x1801220bd
mov r9d, dword [r12 + 0x18]
mov rdx, rsi
nop dword [rax]
cmp r8d, r9d
jge 0x180121e99
mov rax, qword [rdx + r15]
mov rcx, qword [r14 + 0x20]
cmp qword [rdx + rcx], rax
mov eax, 0x10b
cmovne ebx, eax
inc r8d
add rdx, 8
test ebx, ebx
je 0x180121e70
jmp 0x1801220bd
test ebx, ebx
jne 0x1801220bd
cmp dword [r12 + 0x40], esi
jne 0x180121fa9
mov rbx, qword [r14]
lea r9, str.content
lea rcx, str.SELECT_count___FROM__Q._q__s
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov r13, rsi
call sym.sqlite.dll_sqlite3_mprintf
mov rdi, rax
test rax, rax
jne 0x180121edd
lea ebx, [rax + 7]
jmp 0x180121f91
mov rcx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov r9d, 0x80
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rbp + 0x38], rsi
mov qword [rsp + 0x20], rsi
call fcn.180087650
mov ebx, eax
test eax, eax
jne 0x180121f37
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121f2d
xor edx, edx
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
mov r13, rax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_finalize
mov ebx, eax
cmp dword [0x180171920], esi
je 0x180121f88
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180121f51
call qword [0x1801719a0]
mov rcx, rdi
call qword [0x180171958]
dec qword [0x180181138]
movsxd rcx, eax
sub qword [0x1801810f0], rcx
mov rcx, rdi
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180121f91
call qword [0x1801719b0]
jmp 0x180121f91
mov rcx, rdi
call qword [0x180171948]
test ebx, ebx
jne 0x1801220bd
cmp r13, qword [r14 + 0x18]
je 0x180121fa9
mov ebx, 0x10b
jmp 0x1801220bd
cmp dword [r12 + 0x58], esi
je 0x1801220a8
mov rbx, qword [r14]
lea r9, str.docsize
lea rcx, str.SELECT_count___FROM__Q._q__s
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
call sym.sqlite.dll_sqlite3_mprintf
mov rdi, rax
test rax, rax
jne 0x180121fe2
lea ebx, [rax + 7]
jmp 0x180122097
mov rcx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov r9d, 0x80
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rbp + 0x38], rsi
mov qword [rsp + 0x20], rsi
call fcn.180087650
mov ebx, eax
test eax, eax
jne 0x18012203c
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122032
xor edx, edx
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
mov rsi, rax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_finalize
mov ebx, eax
cmp dword [0x180171920], 0
je 0x18012208e
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180122057
call qword [0x1801719a0]
mov rcx, rdi
call qword [0x180171958]
dec qword [0x180181138]
movsxd rcx, eax
sub qword [0x1801810f0], rcx
mov rcx, rdi
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180122097
call qword [0x1801719b0]
jmp 0x180122097
mov rcx, rdi
call qword [0x180171948]
test ebx, ebx
jne 0x1801220bd
cmp rsi, qword [r14 + 0x18]
je 0x1801220a8
mov ebx, 0x10b
jmp 0x1801220bd
mov r8d, 1
mov rdx, qword [rbp - 0x28]
mov rcx, qword [r14 + 8]
call fcn.18011a9b0
mov ebx, eax
cmp dword [0x180171920], 0
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
je 0x18012212a
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1801220e5
call qword [0x1801719a0]
mov rcx, r15
call qword [0x180171958]
dec qword [0x180181138]
movsxd rcx, eax
sub qword [0x1801810f0], rcx
mov rcx, r15
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180122133
call qword [0x1801719b0]
mov eax, ebx
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, r15
call qword [0x180171948]
mov eax, ebx
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
mov eax, 7
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret