Function at 0x18011dcb0
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 0x180117bc5
cmp dword [rcx + 0x34], edi
je 0x180117bd2
call fcn.180117130
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x38], r12d
cmp qword [rbx + 0x90], rdi
jne 0x180117bfe
mov rcx, rbx
call fcn.18010f120
mov qword [rbx + 0x88], rax
cmp dword [rbx + 0x3c], edi
jne 0x180117c03
mov rcx, rbx
call fcn.18010f060
mov qword [rbx + 0x90], rax
cmp dword [rbx + 0x3c], edi
je 0x180117c08
mov rsi, r12
jmp 0x180117c18
mov rax, qword [rbx + 0x90]
inc dword [rax]
mov rsi, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180117c30
call fcn.18010e670
mov qword [rbx + 0x90], r12
test rsi, rsi
je 0x180117c48
mov rdx, rsi
mov rcx, rbx
call fcn.180117980
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.18010e670
test rdi, rdi
je 0x180117cd4
lea rcx, [rdi + 0x24]
mov qword [rsp + 0x50], rbp
mov esi, r12d
cmp dword [rcx], r12d
jne 0x180117c7b
nop word [rax + rax]
add rcx, 0x10
inc esi
cmp dword [rcx], r12d
je 0x180117c70
movsxd rbp, esi
cmp dword [rbx + 0x3c], r12d
jne 0x180117cb6
add rbp, rbp
cmp dword [rdi + rbp*8 + 0x24], r12d
jle 0x180117cb6
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, esi
mov rcx, rbx
mov dword [rsp + 0x40], 0x3e8
call fcn.180115800
mov rdi, qword [rsp + 0x48]
cmp dword [rbx + 0x3c], r12d
je 0x180117c87
mov rbp, qword [rsp + 0x50]
cmp dword [rbx + 0x3c], r12d
jne 0x180117ccc
mov rdx, rdi
mov rcx, rbx
call fcn.18010f1d0
mov rcx, rdi
call fcn.18010e670
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 0x180117d11
cmp dword [rcx + 0x34], r12d
je 0x180117d1e
call fcn.180117130
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x38], r12d
cmp qword [rdi + 0x90], r12
jne 0x180117d4b
mov rcx, rdi
call fcn.18010f120
mov qword [rdi + 0x88], rax
cmp dword [rdi + 0x3c], r12d
jne 0x180117d51
mov rcx, rdi
call fcn.18010f060
mov qword [rdi + 0x90], rax
cmp dword [rdi + 0x3c], r12d
je 0x180117d56
mov rsi, r12
jmp 0x180117d66
mov rax, qword [rdi + 0x90]
inc dword [rax]
mov rsi, qword [rdi + 0x90]
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x180117e0f
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x90]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax + 0x94]
test rcx, rcx
je 0x180117d9a
call fcn.18010e670
mov qword [rdi + 0x90], r12
test ebp, ebp
jns 0x180117dc3
mov rdx, rsi
mov rcx, rdi
call fcn.180117980
mov rcx, rsi
mov rbx, rax
call fcn.18010e670
mov rsi, rbx
mov qword [rsp + 0x40], rbx
neg ebp
mov ebx, 1
test rsi, rsi
je 0x180117e02
cmp dword [rsi + 0x1c], r12d
je 0x180117e02
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov r8d, ebp
mov rcx, rdi
call fcn.180116140
test eax, eax
je 0x180117dfd
cmp dword [rdi + 0x3c], r12d
jne 0x180117dfd
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.18010f1d0
jmp 0x180117e02
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18010e670
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 0x18011de65
lea r9, str.delete_all
mov r10, rdx
lea rbp, [0x180144c70]
sub r10, r9
nop
movzx ecx, byte [r9]
movzx eax, byte [r10 + r9]
cmp ecx, eax
jne 0x18011dd28
test ecx, ecx
jne 0x18011dd34
cmp dword [r11 + 0x40], ecx
jne 0x18011dd39
lea rdx, str.delete_all_may_only_be_used_with_a_contentless_or_external_content_fts5_table
mov rcx, rbx
call fcn.18011dc70
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 0x18011dd4e
inc r9
jmp 0x18011dcf0
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180121ac0
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 0x18011dd99
test ecx, ecx
jne 0x18011dda5
cmp dword [r11 + 0x40], 1
jne 0x18011ddaa
lea rdx, str.rebuild_may_not_be_used_with_a_contentless_fts5_table
mov rcx, rbx
call fcn.18011dc70
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 0x18011ddbf
inc r8
jmp 0x18011dd60
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180121b60
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 0x18011ddfa
test ecx, ecx
jne 0x18011de06
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 0x180117ba0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011de0b
inc r8
jmp 0x18011ddd0
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 0x18011de54
test ecx, ecx
jne 0x18011de60
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 0x180117cf0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011de65
inc r8
jmp 0x18011de20
lea rcx, str.integrity_check
mov rdx, rdi
call sym.sqlite.dll_sqlite3_stricmp
test eax, eax
jne 0x18011de97
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 0x180122820
mov rcx, qword [rbx + 0x20]
call fcn.180119d10
test eax, eax
jne 0x18011ded8
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.1801084a0
test eax, eax
jne 0x18011ded8
cmp dword [rsp + 0x40], eax
jne 0x18011dd16
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
call fcn.180123240
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.1801209e0
test eax, eax
jne 0x180121b4d
cmp dword [rbx + 0x58], eax
je 0x180121b2a
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.1801209e0
test eax, eax
jne 0x180121b4d
mov rcx, qword [rdi + 8]
call fcn.1801192b0
test eax, eax
jne 0x180121b4d
lea r9d, [rax + 4]
lea rdx, str.version
xor r8d, r8d
mov rcx, rdi
call fcn.180123240
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 0x180121ac0
mov ebp, eax
test eax, eax
jne 0x180121f04
cmp dword [r14 + 0x10], edi
jne 0x180121bd1
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180119b10
mov dword [r14 + 0x10], 1
mov ebp, eax
test ebp, ebp
jne 0x180121f04
mov qword [rsp + 0xb0], rbx
lea rbx, [r14 + 0x78]
mov qword [rsp + 0x80], rsi
cmp qword [rbx], rdi
jne 0x180121c50
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 0x180121c16
lea ebp, [rax + 7]
jmp 0x180121c50
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.180088370
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 0x180121ef4
nop dword [rax + rax]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121e94
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 0x180121cb8
mov rcx, qword [rbx]
lea r8, [rbx + 0x20]
call fcn.18010d3d0
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 0x28]
cmp rbp, rax
jl 0x180121cd6
jne 0x180121cc8
cmp dword [rbx + 0x30], esi
je 0x180121cd6
mov rax, qword [rbx]
mov ecx, dword [rax + 0x98]
cmp dword [rbx + 0x20], ecx
jle 0x180121cee
cmp dword [rbx + 0x20], esi
jne 0x180121ce0
cmp dword [rbx + 0x34], esi
je 0x180121cee
mov rcx, rbx
call fcn.180117130
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 0x180121e57
nop dword [rax]
cmp edx, dword [r15 + 0x18]
jge 0x180121e49
xor r8d, r8d
movsxd rcx, edx
mov dword [rsp + 0x4c], r8d
mov rax, qword [r15 + 0x28]
cmp byte [rcx + rax], r8b
jne 0x180121d87
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 0x180121d56
xor ebp, ebp
jmp 0x180121d82
mov rax, qword [r15 + 0x70]
lea rcx, [0x180121050]
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 0x180121dcf
mov eax, 0x40
test r12d, r12d
cmovne eax, r12d
movsxd rbx, eax
mov eax, ecx
cmp rbx, rax
jae 0x180121db0
add rbx, rbx
cmp rbx, rax
jb 0x180121da8
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180121de9
mov rdx, rbx
mov rcx, r13
call fcn.18000c190
test rax, rax
je 0x180121de9
mov r12d, ebx
mov r13, rax
movsxd rcx, esi
add rcx, r13
cmp rdi, 0x7f
ja 0x180121df0
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x180121e1b
mov ebp, 7
jmp 0x180121e1d
cmp rdi, 0x3fff
ja 0x180121e13
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 0x180121e1b
mov rdx, rdi
call fcn.180011690
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 0x180121d10
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], r12d
mov qword [rsp + 0x50], r13
inc qword [r14 + 0x18]
test ebp, ebp
jne 0x180121e94
mov rax, qword [r14]
cmp dword [rax + 0x58], ebp
je 0x180121e8a
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x50]
mov rcx, r14
call fcn.180121400
mov r12d, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x50]
mov ebp, eax
jmp 0x180121e8c
xor ebp, ebp
test ebp, ebp
je 0x180121c70
test r13, r13
je 0x180121ef4
cmp dword [0x180172920], 0
je 0x180121eeb
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180121eb4
call qword [0x1801729a0]
mov rcx, r13
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, r13
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180121ef4
call qword [0x1801729b0]
jmp 0x180121ef4
mov rcx, r13
call qword [0x180172948]
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 0x180121f3b
test eax, eax
jne 0x180121f3d
mov rcx, r14
call fcn.180121610
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 0x180122e53
test rbx, rbx
je 0x180122e53
mov rcx, rbx
call fcn.18000be40
mov r15, rax
test rax, rax
je 0x180122e53
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.18012e4c0
mov ecx, dword [r12 + 0x40]
test ecx, ecx
je 0x1801228d6
cmp ecx, 2
jne 0x1801228cc
test edi, edi
jne 0x1801228d6
xor esi, esi
mov r8d, esi
jmp 0x180122dbe
xor esi, esi
lea rdi, [r14 + 0x78]
mov ebx, esi
cmp qword [rdi], rbx
jne 0x180122945
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 0x180122907
lea ebx, [rsi + 7]
jmp 0x180122941
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.180088370
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 0x180122dcd
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122b31
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 0x180122998
mov r8, r13
mov rdx, rax
mov rcx, r14
call fcn.180122f80
mov ebx, eax
test ebx, ebx
jne 0x1801229e4
cmp dword [r12 + 0x5c], 1
jne 0x1801229e4
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x1801229b9
mov rdi, rsi
mov ebx, 7
jmp 0x1801229e0
mov ecx, 0x1000
call fcn.18000be40
mov rdi, rax
test rax, rax
jne 0x1801229d0
lea ebx, [rax + 7]
jmp 0x1801229e0
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012e4c0
mov qword [rbp - 0x20], rdi
mov r14d, esi
mov r13, rsi
test ebx, ebx
jne 0x180122aff
cmp r14d, dword [r12 + 0x18]
jge 0x180122aff
mov rax, qword [r12 + 0x28]
cmp byte [r13 + rax], sil
jne 0x180122af1
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x2c], esi
cmp dword [r12 + 0x5c], 2
jne 0x180122a5c
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180122a31
mov rdi, rsi
mov ebx, 7
jmp 0x180122a58
mov ecx, 0x1000
call fcn.18000be40
mov rdi, rax
test rax, rax
jne 0x180122a48
lea ebx, [rax + 7]
jmp 0x180122a58
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012e4c0
mov qword [rbp - 0x20], rdi
test ebx, ebx
jne 0x180122ad4
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 0x180122a89
mov ebx, esi
jmp 0x180122aba
mov rax, qword [r12 + 0x70]
lea rcx, [0x1801225c0]
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 0x180122ad4
cmp dword [r12 + 0x58], esi
je 0x180122ad4
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 0x180122af1
mov rcx, qword [rbp - 0x20]
call fcn.1801067f0
mov qword [rbp - 0x20], rsi
inc r14d
inc r13
test ebx, ebx
je 0x1801229f2
mov rcx, qword [rbp - 0x20]
call fcn.1801067f0
mov rdi, qword [rbp + 0x50]
mov qword [rbp - 0x20], rsi
test ebx, ebx
jne 0x180122b2d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
mov r14, qword [rbp + 0x38]
mov r13, qword [rbp + 0x48]
cmp eax, 0x64
je 0x180122970
mov r14, qword [rbp + 0x38]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x180122dcd
mov ebx, eax
test eax, eax
jne 0x180122dcd
mov ebx, esi
cmp dword [r14 + 0x10], ebx
jne 0x180122b6a
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180119b10
mov dword [r14 + 0x10], esi
mov ebx, eax
mov r8d, esi
test ebx, ebx
jne 0x180122dcd
mov r9d, dword [r12 + 0x18]
mov rdx, rsi
nop dword [rax]
cmp r8d, r9d
jge 0x180122ba9
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 0x180122b80
jmp 0x180122dcd
test ebx, ebx
jne 0x180122dcd
cmp dword [r12 + 0x40], esi
jne 0x180122cb9
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 0x180122bed
lea ebx, [rax + 7]
jmp 0x180122ca1
mov rcx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov r9d, pe_nt_image_headers64
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rbp + 0x38], rsi
mov qword [rsp + 0x20], rsi
call fcn.180088370
mov ebx, eax
test eax, eax
jne 0x180122c47
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122c3d
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 [0x180172920], esi
je 0x180122c98
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122c61
call qword [0x1801729a0]
mov rcx, rdi
call qword [0x180172958]
dec qword [0x180182138]
movsxd rcx, eax
sub qword [0x1801820f0], rcx
mov rcx, rdi
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122ca1
call qword [0x1801729b0]
jmp 0x180122ca1
mov rcx, rdi
call qword [0x180172948]
test ebx, ebx
jne 0x180122dcd
cmp r13, qword [r14 + 0x18]
je 0x180122cb9
mov ebx, 0x10b
jmp 0x180122dcd
cmp dword [r12 + 0x58], esi
je 0x180122db8
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 0x180122cf2
lea ebx, [rax + 7]
jmp 0x180122da7
mov rcx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov r9d, pe_nt_image_headers64
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rbp + 0x38], rsi
mov qword [rsp + 0x20], rsi
call fcn.180088370
mov ebx, eax
test eax, eax
jne 0x180122d4c
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122d42
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 [0x180172920], 0
je 0x180122d9e
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122d67
call qword [0x1801729a0]
mov rcx, rdi
call qword [0x180172958]
dec qword [0x180182138]
movsxd rcx, eax
sub qword [0x1801820f0], rcx
mov rcx, rdi
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122da7
call qword [0x1801729b0]
jmp 0x180122da7
mov rcx, rdi
call qword [0x180172948]
test ebx, ebx
jne 0x180122dcd
cmp rsi, qword [r14 + 0x18]
je 0x180122db8
mov ebx, 0x10b
jmp 0x180122dcd
mov r8d, 1
mov rdx, qword [rbp - 0x28]
mov rcx, qword [r14 + 8]
call fcn.18011b6c0
mov ebx, eax
cmp dword [0x180172920], 0
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
je 0x180122e3a
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122df5
call qword [0x1801729a0]
mov rcx, r15
call qword [0x180172958]
dec qword [0x180182138]
movsxd rcx, eax
sub qword [0x1801820f0], rcx
mov rcx, r15
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122e43
call qword [0x1801729b0]
mov eax, ebx
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, r15
call qword [0x180172948]
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