Function at 0x18011d680
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 0x180117595
cmp dword [rcx + 0x34], edi
je 0x1801175a2
call fcn.180116b00
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x38], r12d
cmp qword [rbx + 0x90], rdi
jne 0x1801175ce
mov rcx, rbx
call fcn.18010eaf0
mov qword [rbx + 0x88], rax
cmp dword [rbx + 0x3c], edi
jne 0x1801175d3
mov rcx, rbx
call fcn.18010ea30
mov qword [rbx + 0x90], rax
cmp dword [rbx + 0x3c], edi
je 0x1801175d8
mov rsi, r12
jmp 0x1801175e8
mov rax, qword [rbx + 0x90]
inc dword [rax]
mov rsi, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180117600
call fcn.18010e040
mov qword [rbx + 0x90], r12
test rsi, rsi
je 0x180117618
mov rdx, rsi
mov rcx, rbx
call fcn.180117350
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.18010e040
test rdi, rdi
je 0x1801176a4
lea rcx, [rdi + 0x24]
mov qword [rsp + 0x50], rbp
mov esi, r12d
cmp dword [rcx], r12d
jne 0x18011764b
nop word [rax + rax]
add rcx, 0x10
inc esi
cmp dword [rcx], r12d
je 0x180117640
movsxd rbp, esi
cmp dword [rbx + 0x3c], r12d
jne 0x180117686
add rbp, rbp
cmp dword [rdi + rbp*8 + 0x24], r12d
jle 0x180117686
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, esi
mov rcx, rbx
mov dword [rsp + 0x40], 0x3e8
call fcn.1801151d0
mov rdi, qword [rsp + 0x48]
cmp dword [rbx + 0x3c], r12d
je 0x180117657
mov rbp, qword [rsp + 0x50]
cmp dword [rbx + 0x3c], r12d
jne 0x18011769c
mov rdx, rdi
mov rcx, rbx
call fcn.18010eba0
mov rcx, rdi
call fcn.18010e040
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 0x1801176e1
cmp dword [rcx + 0x34], r12d
je 0x1801176ee
call fcn.180116b00
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x38], r12d
cmp qword [rdi + 0x90], r12
jne 0x18011771b
mov rcx, rdi
call fcn.18010eaf0
mov qword [rdi + 0x88], rax
cmp dword [rdi + 0x3c], r12d
jne 0x180117721
mov rcx, rdi
call fcn.18010ea30
mov qword [rdi + 0x90], rax
cmp dword [rdi + 0x3c], r12d
je 0x180117726
mov rsi, r12
jmp 0x180117736
mov rax, qword [rdi + 0x90]
inc dword [rax]
mov rsi, qword [rdi + 0x90]
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1801177df
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x90]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax + 0x94]
test rcx, rcx
je 0x18011776a
call fcn.18010e040
mov qword [rdi + 0x90], r12
test ebp, ebp
jns 0x180117793
mov rdx, rsi
mov rcx, rdi
call fcn.180117350
mov rcx, rsi
mov rbx, rax
call fcn.18010e040
mov rsi, rbx
mov qword [rsp + 0x40], rbx
neg ebp
mov ebx, 1
test rsi, rsi
je 0x1801177d2
cmp dword [rsi + 0x1c], r12d
je 0x1801177d2
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov r8d, ebp
mov rcx, rdi
call fcn.180115b10
test eax, eax
je 0x1801177cd
cmp dword [rdi + 0x3c], r12d
jne 0x1801177cd
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.18010eba0
jmp 0x1801177d2
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18010e040
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 0x18011d835
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 0x18011d6f8
test ecx, ecx
jne 0x18011d704
cmp dword [r11 + 0x40], ecx
jne 0x18011d709
lea rdx, str.delete_all_may_only_be_used_with_a_contentless_or_external_content_fts5_table
mov rcx, rbx
call fcn.18011d640
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 0x18011d71e
inc r9
jmp 0x18011d6c0
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180121490
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 0x18011d769
test ecx, ecx
jne 0x18011d775
cmp dword [r11 + 0x40], 1
jne 0x18011d77a
lea rdx, str.rebuild_may_not_be_used_with_a_contentless_fts5_table
mov rcx, rbx
call fcn.18011d640
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 0x18011d78f
inc r8
jmp 0x18011d730
mov rcx, qword [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x180121530
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 0x18011d7ca
test ecx, ecx
jne 0x18011d7d6
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 0x180117570
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d7db
inc r8
jmp 0x18011d7a0
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 0x18011d824
test ecx, ecx
jne 0x18011d830
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 0x1801176c0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
sub ecx, edx
jne 0x18011d835
inc r8
jmp 0x18011d7f0
lea rcx, str.integrity_check
mov rdx, rdi
call sym.sqlite.dll_sqlite3_stricmp
test eax, eax
jne 0x18011d867
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 0x1801221f0
mov rcx, qword [rbx + 0x20]
call fcn.1801196e0
test eax, eax
jne 0x18011d8a8
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.180107e70
test eax, eax
jne 0x18011d8a8
cmp dword [rsp + 0x40], eax
jne 0x18011d6e6
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
call fcn.180122c10
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.1801203b0
test eax, eax
jne 0x18012151d
cmp dword [rbx + 0x58], eax
je 0x1801214fa
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.1801203b0
test eax, eax
jne 0x18012151d
mov rcx, qword [rdi + 8]
call fcn.180118c80
test eax, eax
jne 0x18012151d
lea r9d, [rax + 4]
lea rdx, str.version
xor r8d, r8d
mov rcx, rdi
call fcn.180122c10
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 0x180121490
mov ebp, eax
test eax, eax
jne 0x1801218d4
cmp dword [r14 + 0x10], edi
jne 0x1801215a1
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.1801194e0
mov dword [r14 + 0x10], 1
mov ebp, eax
test ebp, ebp
jne 0x1801218d4
mov qword [rsp + 0xb0], rbx
lea rbx, [r14 + 0x78]
mov qword [rsp + 0x80], rsi
cmp qword [rbx], rdi
jne 0x180121620
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 0x1801215e6
lea ebp, [rax + 7]
jmp 0x180121620
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.180088380
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 0x1801218c4
nop dword [rax + rax]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180121864
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 0x180121688
mov rcx, qword [rbx]
lea r8, [rbx + 0x20]
call fcn.18010cda0
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 0x28]
cmp rbp, rax
jl 0x1801216a6
jne 0x180121698
cmp dword [rbx + 0x30], esi
je 0x1801216a6
mov rax, qword [rbx]
mov ecx, dword [rax + 0x98]
cmp dword [rbx + 0x20], ecx
jle 0x1801216be
cmp dword [rbx + 0x20], esi
jne 0x1801216b0
cmp dword [rbx + 0x34], esi
je 0x1801216be
mov rcx, rbx
call fcn.180116b00
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 0x180121827
nop dword [rax]
cmp edx, dword [r15 + 0x18]
jge 0x180121819
xor r8d, r8d
movsxd rcx, edx
mov dword [rsp + 0x4c], r8d
mov rax, qword [r15 + 0x28]
cmp byte [rcx + rax], r8b
jne 0x180121757
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 0x180121726
xor ebp, ebp
jmp 0x180121752
mov rax, qword [r15 + 0x70]
lea rcx, [0x180120a20]
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 0x18012179f
mov eax, 0x40
test r12d, r12d
cmovne eax, r12d
movsxd rbx, eax
mov eax, ecx
cmp rbx, rax
jae 0x180121780
add rbx, rbx
cmp rbx, rax
jb 0x180121778
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1801217b9
mov rdx, rbx
mov rcx, r13
call fcn.18000c190
test rax, rax
je 0x1801217b9
mov r12d, ebx
mov r13, rax
movsxd rcx, esi
add rcx, r13
cmp rdi, 0x7f
ja 0x1801217c0
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x1801217eb
mov ebp, 7
jmp 0x1801217ed
cmp rdi, 0x3fff
ja 0x1801217e3
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 0x1801217eb
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 0x1801216e0
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], r12d
mov qword [rsp + 0x50], r13
inc qword [r14 + 0x18]
test ebp, ebp
jne 0x180121864
mov rax, qword [r14]
cmp dword [rax + 0x58], ebp
je 0x18012185a
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x50]
mov rcx, r14
call fcn.180120dd0
mov r12d, dword [rsp + 0x5c]
mov r13, qword [rsp + 0x50]
mov ebp, eax
jmp 0x18012185c
xor ebp, ebp
test ebp, ebp
je 0x180121640
test r13, r13
je 0x1801218c4
cmp dword [0x180172920], 0
je 0x1801218bb
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180121884
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 0x1801218c4
call qword [0x1801729b0]
jmp 0x1801218c4
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 0x18012190b
test eax, eax
jne 0x18012190d
mov rcx, r14
call fcn.180120fe0
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 0x180122823
test rbx, rbx
je 0x180122823
mov rcx, rbx
call fcn.18000be40
mov r15, rax
test rax, rax
je 0x180122823
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.18012e4b0
mov ecx, dword [r12 + 0x40]
test ecx, ecx
je 0x1801222a6
cmp ecx, 2
jne 0x18012229c
test edi, edi
jne 0x1801222a6
xor esi, esi
mov r8d, esi
jmp 0x18012278e
xor esi, esi
lea rdi, [r14 + 0x78]
mov ebx, esi
cmp qword [rdi], rbx
jne 0x180122315
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 0x1801222d7
lea ebx, [rsi + 7]
jmp 0x180122311
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.180088380
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 0x18012279d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122501
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 0x180122368
mov r8, r13
mov rdx, rax
mov rcx, r14
call fcn.180122950
mov ebx, eax
test ebx, ebx
jne 0x1801223b4
cmp dword [r12 + 0x5c], 1
jne 0x1801223b4
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180122389
mov rdi, rsi
mov ebx, 7
jmp 0x1801223b0
mov ecx, 0x1000
call fcn.18000be40
mov rdi, rax
test rax, rax
jne 0x1801223a0
lea ebx, [rax + 7]
jmp 0x1801223b0
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012e4b0
mov qword [rbp - 0x20], rdi
mov r14d, esi
mov r13, rsi
test ebx, ebx
jne 0x1801224cf
cmp r14d, dword [r12 + 0x18]
jge 0x1801224cf
mov rax, qword [r12 + 0x28]
cmp byte [r13 + rax], sil
jne 0x1801224c1
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x2c], esi
cmp dword [r12 + 0x5c], 2
jne 0x18012242c
mov ebx, esi
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180122401
mov rdi, rsi
mov ebx, 7
jmp 0x180122428
mov ecx, 0x1000
call fcn.18000be40
mov rdi, rax
test rax, rax
jne 0x180122418
lea ebx, [rax + 7]
jmp 0x180122428
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18012e4b0
mov qword [rbp - 0x20], rdi
test ebx, ebx
jne 0x1801224a4
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 0x180122459
mov ebx, esi
jmp 0x18012248a
mov rax, qword [r12 + 0x70]
lea rcx, [0x180121f90]
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 0x1801224a4
cmp dword [r12 + 0x58], esi
je 0x1801224a4
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 0x1801224c1
mov rcx, qword [rbp - 0x20]
call fcn.1801061c0
mov qword [rbp - 0x20], rsi
inc r14d
inc r13
test ebx, ebx
je 0x1801223c2
mov rcx, qword [rbp - 0x20]
call fcn.1801061c0
mov rdi, qword [rbp + 0x50]
mov qword [rbp - 0x20], rsi
test ebx, ebx
jne 0x1801224fd
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
mov r14, qword [rbp + 0x38]
mov r13, qword [rbp + 0x48]
cmp eax, 0x64
je 0x180122340
mov r14, qword [rbp + 0x38]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x18012279d
mov ebx, eax
test eax, eax
jne 0x18012279d
mov ebx, esi
cmp dword [r14 + 0x10], ebx
jne 0x18012253a
mov r8, qword [r14 + 0x20]
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0x18]
call fcn.1801194e0
mov dword [r14 + 0x10], esi
mov ebx, eax
mov r8d, esi
test ebx, ebx
jne 0x18012279d
mov r9d, dword [r12 + 0x18]
mov rdx, rsi
nop dword [rax]
cmp r8d, r9d
jge 0x180122579
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 0x180122550
jmp 0x18012279d
test ebx, ebx
jne 0x18012279d
cmp dword [r12 + 0x40], esi
jne 0x180122689
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 0x1801225bd
lea ebx, [rax + 7]
jmp 0x180122671
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.180088380
mov ebx, eax
test eax, eax
jne 0x180122617
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x18012260d
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 0x180122668
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122631
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 0x180122671
call qword [0x1801729b0]
jmp 0x180122671
mov rcx, rdi
call qword [0x180172948]
test ebx, ebx
jne 0x18012279d
cmp r13, qword [r14 + 0x18]
je 0x180122689
mov ebx, 0x10b
jmp 0x18012279d
cmp dword [r12 + 0x58], esi
je 0x180122788
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 0x1801226c2
lea ebx, [rax + 7]
jmp 0x180122777
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.180088380
mov ebx, eax
test eax, eax
jne 0x18012271c
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122712
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 0x18012276e
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180122737
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 0x180122777
call qword [0x1801729b0]
jmp 0x180122777
mov rcx, rdi
call qword [0x180172948]
test ebx, ebx
jne 0x18012279d
cmp rsi, qword [r14 + 0x18]
je 0x180122788
mov ebx, 0x10b
jmp 0x18012279d
mov r8d, 1
mov rdx, qword [rbp - 0x28]
mov rcx, qword [r14 + 8]
call fcn.18011b090
mov ebx, eax
cmp dword [0x180172920], 0
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
je 0x18012280a
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x1801227c5
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 0x180122813
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