Function at 0x18011cd20
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 0x180116c35
cmp dword [rcx + 0x34], edi
je 0x180116c42
call fcn.1801161a0
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x38], r12d
cmp qword [rbx + 0x90], rdi
jne 0x180116c6e
mov rcx, rbx
call fcn.18010e190
mov qword [rbx + 0x88], rax
cmp dword [rbx + 0x3c], edi
jne 0x180116c73
mov rcx, rbx
call fcn.18010e0d0
mov qword [rbx + 0x90], rax
cmp dword [rbx + 0x3c], edi
je 0x180116c78
mov rsi, r12
jmp 0x180116c88
mov rax, qword [rbx + 0x90]
inc dword [rax]
mov rsi, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180116ca0
call fcn.18010d6e0
mov qword [rbx + 0x90], r12
test rsi, rsi
je 0x180116cb8
mov rdx, rsi
mov rcx, rbx
call fcn.1801169f0
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.18010d6e0
test rdi, rdi
je 0x180116d44
lea rcx, [rdi + 0x24]
mov qword [rsp + 0x50], rbp
mov esi, r12d
cmp dword [rcx], r12d
jne 0x180116ceb
nop word [rax + rax]
add rcx, 0x10
inc esi
cmp dword [rcx], r12d
je 0x180116ce0
movsxd rbp, esi
cmp dword [rbx + 0x3c], r12d
jne 0x180116d26
add rbp, rbp
cmp dword [rdi + rbp*8 + 0x24], r12d
jle 0x180116d26
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, esi
mov rcx, rbx
mov dword [rsp + 0x40], 0x3e8
call fcn.180114870
mov rdi, qword [rsp + 0x48]
cmp dword [rbx + 0x3c], r12d
je 0x180116cf7
mov rbp, qword [rsp + 0x50]
cmp dword [rbx + 0x3c], r12d
jne 0x180116d3c
mov rdx, rdi
mov rcx, rbx
call fcn.18010e240
mov rcx, rdi
call fcn.18010d6e0
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 0x180116d81
cmp dword [rcx + 0x34], r12d
je 0x180116d8e
call fcn.1801161a0
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x38], r12d
cmp qword [rdi + 0x90], r12
jne 0x180116dbb
mov rcx, rdi
call fcn.18010e190
mov qword [rdi + 0x88], rax
cmp dword [rdi + 0x3c], r12d
jne 0x180116dc1
mov rcx, rdi
call fcn.18010e0d0
mov qword [rdi + 0x90], rax
cmp dword [rdi + 0x3c], r12d
je 0x180116dc6
mov rsi, r12
jmp 0x180116dd6
mov rax, qword [rdi + 0x90]
inc dword [rax]
mov rsi, qword [rdi + 0x90]
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x180116e7f
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x90]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax + 0x94]
test rcx, rcx
je 0x180116e0a
call fcn.18010d6e0
mov qword [rdi + 0x90], r12
test ebp, ebp
jns 0x180116e33
mov rdx, rsi
mov rcx, rdi
call fcn.1801169f0
mov rcx, rsi
mov rbx, rax
call fcn.18010d6e0
mov rsi, rbx
mov qword [rsp + 0x40], rbx
neg ebp
mov ebx, 1
test rsi, rsi
je 0x180116e72
cmp dword [rsi + 0x1c], r12d
je 0x180116e72
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov r8d, ebp
mov rcx, rdi
call fcn.1801151b0
test eax, eax
je 0x180116e6d
cmp dword [rdi + 0x3c], r12d
jne 0x180116e6d
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.18010e240
jmp 0x180116e72
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18010d6e0
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 0x18011ced5
lea r9, str.delete_all
mov r10, rdx
lea rbp, [0x180143970]
sub r10, r9
nop
movzx ecx, byte [r9]
movzx eax, byte [r10 + r9]
cmp ecx, eax
jne 0x18011cd98
test ecx, ecx
jne 0x18011cda4
cmp dword [r11 + 0x40], ecx
jne 0x18011cda9
lea rdx, str.delete_all_may_only_be_used_with_a_contentless_or_external_content_fts5_table
mov rcx, rbx
call fcn.18011cce0
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 0x18011cdbe
inc r9
jmp 0x18011cd60
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180120b30
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 0x18011ce09
test ecx, ecx
jne 0x18011ce15
cmp dword [r11 + 0x40], 1
jne 0x18011ce1a
lea rdx, str.rebuild_may_not_be_used_with_a_contentless_fts5_table
mov rcx, rbx
call fcn.18011cce0
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 0x18011ce2f
inc r8
jmp 0x18011cdd0
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180120bd0
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 0x18011ce6a
test ecx, ecx
jne 0x18011ce76
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 0x180116c10
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011ce7b
inc r8
jmp 0x18011ce40
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 0x18011cec4
test ecx, ecx
jne 0x18011ced0
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 0x180116d60
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011ced5
inc r8
jmp 0x18011ce90
lea rcx, str.integrity_check
mov rdx, rdi
call sym.sqlite.dll_sqlite3_stricmp
test eax, eax
jne 0x18011cf07
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 0x180121890
mov rcx, qword [rbx + 0x20]
call fcn.180118d80
test eax, eax
jne 0x18011cf48
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.180107510
test eax, eax
jne 0x18011cf48
cmp dword [rsp + 0x40], eax
jne 0x18011cd86
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
call fcn.1801222b0
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.18011fa50
test eax, eax
jne 0x180120bbd
cmp dword [rbx + 0x58], eax
je 0x180120b9a
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.18011fa50
test eax, eax
jne 0x180120bbd
mov rcx, qword [rdi + 8]
call fcn.180118320
test eax, eax
jne 0x180120bbd
lea r9d, [rax + 4]
lea rdx, str.version
xor r8d, r8d
mov rcx, rdi
call fcn.1801222b0
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 0x180120b30
mov ebp, eax
test eax, eax
jne 0x180120f74
cmp dword [r14 + 0x10], edi
jne 0x180120c41
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180118b80
mov dword [r14 + 0x10], 1
mov ebp, eax
test ebp, ebp
jne 0x180120f74
mov qword [rsp + 0xb0], rbx
lea rbx, [r14 + 0x78]
mov qword [rsp + 0x80], rsi
cmp qword [rbx], rdi
jne 0x180120cc0
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 0x180120c86
lea ebp, [rax + 7]
jmp 0x180120cc0
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.1800873e0
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 0x180120f64
nop dword [rax + rax]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180120f04
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 0x180120d28
mov rcx, qword [rbx]
lea r8, [rbx + 0x20]
call fcn.18010c440
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 0x28]
cmp rbp, rax
jl 0x180120d46
jne 0x180120d38
cmp dword [rbx + 0x30], esi
je 0x180120d46
mov rax, qword [rbx]
mov ecx, dword [rax + 0x98]
cmp dword [rbx + 0x20], ecx
jle 0x180120d5e
cmp dword [rbx + 0x20], esi
jne 0x180120d50
cmp dword [rbx + 0x34], esi
je 0x180120d5e
mov rcx, rbx
call fcn.1801161a0
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 0x180120ec7
nop dword [rax]
cmp edx, dword [r15 + 0x18]
jge 0x180120eb9
xor r8d, r8d
movsxd rcx, edx
mov dword [rsp + 0x4c], r8d
mov rax, qword [r15 + 0x28]
cmp byte [rcx + rax], r8b
jne 0x180120df7
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 0x180120dc6
xor ebp, ebp
jmp 0x180120df2
mov rax, qword [r15 + 0x70]
lea rcx, [0x1801200c0]
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 0x180120e3f
mov eax, 0x40
test r12d, r12d
cmovne eax, r12d
movsxd rbx, eax
mov eax, ecx
cmp rbx, rax
jae 0x180120e20
add rbx, rbx
cmp rbx, rax
jb 0x180120e18
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180120e59
mov rdx, rbx
mov rcx, r13
call fcn.18000b2e0
test rax, rax
je 0x180120e59
mov r12d, ebx
mov r13, rax
movsxd rcx, esi
add rcx, r13
cmp rdi, 0x7f
ja 0x180120e60
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x180120e8b
mov ebp, 7
jmp 0x180120e8d
cmp rdi, 0x3fff
ja 0x180120e83
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 0x180120e8b
mov rdx, rdi
call fcn.180125ca0
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 0x180120d80
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], r12d
mov qword [rsp + 0x50], r13
inc qword [r14 + 0x18]
test ebp, ebp
jne 0x180120f04
mov rax, qword [r14]
cmp dword [rax + 0x58], ebp
je 0x180120efa
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x50]
mov rcx, r14
call fcn.180120470
mov r12d, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x50]
mov ebp, eax
jmp 0x180120efc
xor ebp, ebp
test ebp, ebp
je 0x180120ce0
test r13, r13
je 0x180120f64
cmp dword [0x180171920], 0
je 0x180120f5b
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180120f24
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 0x180120f64
call qword [0x1801719b0]
jmp 0x180120f64
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 0x180120fab
test eax, eax
jne 0x180120fad
mov rcx, r14
call fcn.180120680
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 0x180121ec3
test rbx, rbx
je 0x180121ec3
mov rcx, rbx
call fcn.18000af90
mov r15, rax
test rax, rax
je 0x180121ec3
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.18012d640
mov ecx, dword [r12 + 0x40]
test ecx, ecx
je 0x180121946
cmp ecx, 2
jne 0x18012193c
test edi, edi
jne 0x180121946
xor esi, esi
mov r8d, esi
jmp 0x180121e2e
xor esi, esi
lea rdi, [r14 + 0x78]
mov ebx, esi
cmp qword [rdi], rbx
jne 0x1801219b5
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 0x180121977
lea ebx, [rsi + 7]
jmp 0x1801219b1
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.1800873e0
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 0x180121e3d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121ba1
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 0x180121a08
mov r8, r13
mov rdx, rax
mov rcx, r14
call fcn.180121ff0
mov ebx, eax
test ebx, ebx
jne 0x180121a54
cmp dword [r12 + 0x5c], 1
jne 0x180121a54
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180121a29
mov rdi, rsi
mov ebx, 7
jmp 0x180121a50
mov ecx, 0x1000
call fcn.18000af90
mov rdi, rax
test rax, rax
jne 0x180121a40
lea ebx, [rax + 7]
jmp 0x180121a50
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012d640
mov qword [rbp - 0x20], rdi
mov r14d, esi
mov r13, rsi
test ebx, ebx
jne 0x180121b6f
cmp r14d, dword [r12 + 0x18]
jge 0x180121b6f
mov rax, qword [r12 + 0x28]
cmp byte [r13 + rax], sil
jne 0x180121b61
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x2c], esi
cmp dword [r12 + 0x5c], 2
jne 0x180121acc
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180121aa1
mov rdi, rsi
mov ebx, 7
jmp 0x180121ac8
mov ecx, 0x1000
call fcn.18000af90
mov rdi, rax
test rax, rax
jne 0x180121ab8
lea ebx, [rax + 7]
jmp 0x180121ac8
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012d640
mov qword [rbp - 0x20], rdi
test ebx, ebx
jne 0x180121b44
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 0x180121af9
mov ebx, esi
jmp 0x180121b2a
mov rax, qword [r12 + 0x70]
lea rcx, [0x180121630]
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 0x180121b44
cmp dword [r12 + 0x58], esi
je 0x180121b44
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 0x180121b61
mov rcx, qword [rbp - 0x20]
call fcn.180105860
mov qword [rbp - 0x20], rsi
inc r14d
inc r13
test ebx, ebx
je 0x180121a62
mov rcx, qword [rbp - 0x20]
call fcn.180105860
mov rdi, qword [rbp + 0x50]
mov qword [rbp - 0x20], rsi
test ebx, ebx
jne 0x180121b9d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
mov r14, qword [rbp + 0x38]
mov r13, qword [rbp + 0x48]
cmp eax, 0x64
je 0x1801219e0
mov r14, qword [rbp + 0x38]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x180121e3d
mov ebx, eax
test eax, eax
jne 0x180121e3d
mov ebx, esi
cmp dword [r14 + 0x10], ebx
jne 0x180121bda
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.180118b80
mov dword [r14 + 0x10], esi
mov ebx, eax
mov r8d, esi
test ebx, ebx
jne 0x180121e3d
mov r9d, dword [r12 + 0x18]
mov rdx, rsi
nop dword [rax]
cmp r8d, r9d
jge 0x180121c19
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 0x180121bf0
jmp 0x180121e3d
test ebx, ebx
jne 0x180121e3d
cmp dword [r12 + 0x40], esi
jne 0x180121d29
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 0x180121c5d
lea ebx, [rax + 7]
jmp 0x180121d11
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.1800873e0
mov ebx, eax
test eax, eax
jne 0x180121cb7
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121cad
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 0x180121d08
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180121cd1
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 0x180121d11
call qword [0x1801719b0]
jmp 0x180121d11
mov rcx, rdi
call qword [0x180171948]
test ebx, ebx
jne 0x180121e3d
cmp r13, qword [r14 + 0x18]
je 0x180121d29
mov ebx, 0x10b
jmp 0x180121e3d
cmp dword [r12 + 0x58], esi
je 0x180121e28
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 0x180121d62
lea ebx, [rax + 7]
jmp 0x180121e17
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.1800873e0
mov ebx, eax
test eax, eax
jne 0x180121dbc
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121db2
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 0x180121e0e
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180121dd7
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 0x180121e17
call qword [0x1801719b0]
jmp 0x180121e17
mov rcx, rdi
call qword [0x180171948]
test ebx, ebx
jne 0x180121e3d
cmp rsi, qword [r14 + 0x18]
je 0x180121e28
mov ebx, 0x10b
jmp 0x180121e3d
mov r8d, 1
mov rdx, qword [rbp - 0x28]
mov rcx, qword [r14 + 8]
call fcn.18011a730
mov ebx, eax
cmp dword [0x180171920], 0
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
je 0x180121eaa
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180121e65
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 0x180121eb3
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