Function at 0x1800724d0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push rsi
push r13
push r14
sub rsp, 0xe0
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor r13d, r13d
mov r14, rdx
mov rsi, rcx
cmp byte [rdx + 0x4e], r13b
jne 0x180072513
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.180006c20
lea eax, [r13 + 1]
jmp 0x180072cd7
cmp dword [rdx + 0xa4], 1
jle 0x180072532
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.180006c20
mov eax, 1
jmp 0x180072cd7
mov eax, dword [rdx + 0x2c]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov ecx, dword [rdx + 0x60]
mov dword [rsp + 0x40], eax
and eax, 0xfff5ffff
mov qword [rsp + 0x110], rbx
or eax, 0x202800
mov rbx, qword [rdx + 0x20]
cmp byte [rdx + 0x4f], 2
mov dword [rdx + 0x2c], eax
mov dword [rsp + 0x44], ecx
mov ecx, dword [rdx + 0x64]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rdx + 0xc0]
mov qword [rdx + 0xc0], r13
mov rbx, qword [rbx + 8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0xd8], rbp
mov qword [rsp + 0xd0], rdi
mov rax, qword [rbx + 8]
mov edi, dword [rdx + 0x28]
mov rdx, rsi
mov qword [rsp + 0xc0], r15
mov rcx, qword [rax]
lea rax, str.ATTACH__AS_vacuum_db_
cmovne r8, rax
movzx r15d, byte [rcx + 0x13]
mov rcx, r14
call fcn.180072350
mov ebp, eax
movsxd rax, dword [r14 + 0x28]
cmp eax, edi
jle 0x1800725d7
lea ecx, [rax - 1]
movsxd r13, ecx
shl r13, 5
add r13, qword [r14 + 0x20]
test ebp, ebp
jne 0x180072c06
mov rcx, rax
mov qword [rsp + 0xc8], r12
mov rax, qword [r14 + 0x20]
shl rcx, 5
mov rdi, qword [rcx + rax - 0x18]
cmp byte [rdi + 0x11], bpl
je 0x18007260e
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], bpl
jne 0x18007260e
mov rcx, rdi
call fcn.180018e70
xor edx, edx
mov rcx, rdi
call fcn.18001c530
test eax, eax
jne 0x180072626
xor edx, edx
mov rcx, rdi
call fcn.18001c700
cmp byte [rdi + 0x11], 0
je 0x18007263a
sub dword [rdi + 0x14], 1
jne 0x18007263a
mov rcx, rdi
call fcn.180018e20
movzx ecx, byte [rbx + 0x11]
test cl, cl
je 0x180072657
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x180072657
mov rcx, rbx
call fcn.180018e70
movzx ecx, byte [rbx + 0x11]
mov rax, qword [rbx + 8]
mov r12d, dword [rax + 0x30]
sub r12d, dword [rax + 0x34]
test cl, cl
je 0x180072675
sub dword [rbx + 0x14], 1
jne 0x180072675
mov rcx, rbx
call fcn.180018e20
xor ecx, ecx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
lea rdx, str.PRAGMA_vacuum_db.synchronousOFF
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rcx
lea r8d, [rcx - 1]
mov rcx, r14
call fcn.180063b90
test eax, eax
je 0x1800726c8
mov rcx, r14
call fcn.180087010
mov r8, rax
mov rdx, r14
mov rcx, rsi
call fcn.180006c20
mov rcx, r14
call fcn.1800872f0
jmp 0x1800726e8
mov rcx, qword [rsp + 0xb0]
call fcn.18002c0f0
mov rdx, qword [rsp + 0xb0]
mov r8, rsi
mov rcx, r14
call fcn.1800722d0
mov ebp, eax
test eax, eax
jne 0x180072bfe
xor ecx, ecx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
lea r8d, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rdx, str.BEGIN_
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, r14
call fcn.180063b90
test eax, eax
je 0x180072745
mov rcx, r14
call fcn.180087010
mov r8, rax
mov rdx, r14
mov rcx, rsi
call fcn.180006c20
mov rcx, r14
call fcn.1800872f0
jmp 0x180072765
mov rcx, qword [rsp + 0xb0]
call fcn.18002c0f0
mov rdx, qword [rsp + 0xb0]
mov r8, rsi
mov rcx, r14
call fcn.1800722d0
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea edx, [rax + 2]
mov rcx, rbx
call fcn.18001b430
mov ebp, eax
test eax, eax
jne 0x180072bfe
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x180072799
mov dword [r14 + 0x58], ebp
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x30]
xor r9d, r9d
mov rcx, rdi
mov r8d, r12d
call fcn.18001adc0
test eax, eax
jne 0x180072bf9
test r15b, r15b
jne 0x1800727d1
mov edx, dword [r14 + 0x58]
xor r9d, r9d
mov r8d, r12d
mov rcx, rdi
call fcn.18001adc0
test eax, eax
jne 0x180072bf9
cmp byte [r14 + 0x50], 0
jne 0x180072bf9
movsx eax, byte [r14 + 0x52]
test al, al
js 0x1800727e9
mov ebp, eax
jmp 0x18007282e
movzx eax, byte [rbx + 0x11]
test al, al
je 0x180072806
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x180072806
mov rcx, rbx
call fcn.180018e70
movzx eax, byte [rbx + 0x11]
mov rcx, qword [rbx + 8]
xor ebp, ebp
cmp byte [rcx + 0x21], bpl
je 0x18007281c
cmp byte [rcx + 0x22], bpl
setne bpl
inc ebp
test al, al
je 0x18007282e
sub dword [rbx + 0x14], 1
jne 0x18007282e
mov rcx, rbx
call fcn.180018e20
mov edx, ebp
mov rcx, rdi
call fcn.18001af20
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, rsi
mov rcx, r14
call fcn.180072400
mov ebp, eax
test eax, eax
jne 0x180072bfe
xor r15d, r15d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], r15
lea r8d, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rdx, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rcx, r14
call fcn.180063b90
test eax, eax
je 0x180072934
mov rcx, r14
call fcn.180087010
mov r8, rax
mov rdx, r14
mov rcx, rsi
call fcn.180006c20
mov rcx, r14
call fcn.1800872f0
jmp 0x180072954
mov rcx, qword [rsp + 0xb0]
call fcn.18002c0f0
mov rdx, qword [rsp + 0xb0]
mov r8, rsi
mov rcx, r14
call fcn.1800722d0
mov ebp, eax
test eax, eax
jne 0x180072bfe
mov rsi, r15
lea r15, [0x1801149d8]
nop dword [rax + rax]
movzx r8d, byte [rbx + 0x11]
movzx ebp, byte [rsi + r15]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x180072999
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x180072999
mov rcx, rbx
call fcn.180018e70
movzx r8d, byte [rbx + 0x11]
mov rax, qword [r15 + 0x18]
mov rdx, rbp
mov rcx, qword [rax + 0x50]
movzx ebp, byte [rcx + rbp*4 + 0x25]
movzx eax, byte [rcx + rdx*4 + 0x26]
shl ebp, 8
or ebp, eax
movzx eax, byte [rcx + rdx*4 + 0x24]
shl eax, 0x18
shl ebp, 8
or ebp, eax
movzx eax, byte [rcx + rdx*4 + 0x27]
or ebp, eax
test r8b, r8b
je 0x1800729da
sub dword [rbx + 0x14], 1
jne 0x1800729da
mov rcx, rbx
call fcn.180018e20
lea r15, [0x1801149d8]
mov rcx, rdi
movzx r8d, byte [rsi + r15 + 1]
movzx edx, byte [rsi + r15]
add r8d, ebp
call fcn.180022b60
mov ebp, eax
test eax, eax
jne 0x180072bfe
add rsi, 2
cmp rsi, 0xa
jl 0x180072970
cmp byte [rbx + 0x11], al
je 0x180072a24
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], al
jne 0x180072a24
mov rcx, rbx
call fcn.180018e70
cmp byte [rdi + 0x11], 0
je 0x180072a3b
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x180072a3b
mov rcx, rdi
call fcn.180018e70
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x180072a85
mov rax, qword [rdi + 8]
lea r8, [rsp + 0xb0]
mov edx, dword [rax + 0x3c]
movsxd rax, dword [rax + 0x30]
imul rdx, rax
mov qword [rsp + 0xb0], rdx
mov edx, 0xb
call qword [r9 + 0x50]
mov ebp, eax
cmp eax, 0xc
je 0x180072a85
test eax, eax
jne 0x180072b13
mov rax, qword [rdi]
lea rcx, [rsp + 0x60]
xor esi, esi
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
mov qword [rsp + 0x60], rsi
mov edx, 0x7fffffff
mov qword [rsp + 0x70], rsi
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x68], rbx
call fcn.1800248a0
lea rcx, [rsp + 0x60]
call fcn.180024fa0
mov ebp, eax
test eax, eax
jne 0x180072af4
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x26], cx
jmp 0x180072b15
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x13], sil
jne 0x180072b15
cmp byte [rcx + 0x10], sil
jne 0x180072b15
call fcn.1800116d0
jmp 0x180072b15
xor esi, esi
cmp byte [rdi + 0x11], 0
je 0x180072b29
sub dword [rdi + 0x14], 1
jne 0x180072b29
mov rcx, rdi
call fcn.180018e20
cmp byte [rbx + 0x11], 0
je 0x180072b3d
sub dword [rbx + 0x14], 1
jne 0x180072b3d
mov rcx, rbx
call fcn.180018e20
test ebp, ebp
jne 0x180072bfe
cmp byte [rdi + 0x11], bpl
je 0x180072b5c
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], bpl
jne 0x180072b5c
mov rcx, rdi
call fcn.180018e70
xor edx, edx
mov rcx, rdi
call fcn.18001c530
mov ebp, eax
test eax, eax
jne 0x180072b78
xor edx, edx
mov rcx, rdi
call fcn.18001c700
mov ebp, eax
cmp byte [rdi + 0x11], 0
je 0x180072b8c
sub dword [rdi + 0x14], 1
jne 0x180072b8c
mov rcx, rdi
call fcn.180018e20
test ebp, ebp
jne 0x180072bfe
movzx eax, byte [rdi + 0x11]
test al, al
je 0x180072bad
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], bpl
jne 0x180072bad
mov rcx, rdi
call fcn.180018e70
movzx eax, byte [rdi + 0x11]
mov rcx, qword [rdi + 8]
cmp byte [rcx + 0x21], 0
je 0x180072bc1
cmp byte [rcx + 0x22], 0
setne sil
inc esi
test al, al
je 0x180072bd3
sub dword [rdi + 0x14], 1
jne 0x180072bd3
mov rcx, rdi
call fcn.180018e20
mov edx, esi
mov rcx, rbx
call fcn.18001af20
mov rax, qword [rdi + 8]
mov r9d, 1
mov r8d, r12d
mov rcx, rbx
mov edx, dword [rax + 0x30]
call fcn.18001adc0
mov ebp, eax
jmp 0x180072bfe
mov ebp, 7
mov r12, qword [rsp + 0xc8]
mov eax, dword [rsp + 0x40]
mov dword [r14 + 0x2c], eax
mov eax, dword [rsp + 0x44]
mov dword [r14 + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x64], eax
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0xc0], rax
cmp byte [rbx + 0x11], 0
mov r15, qword [rbx + 8]
je 0x180072c45
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x180072c45
mov rcx, rbx
call fcn.180018e70
test byte [r15 + 0x26], 2
jne 0x180072c76
mov edi, dword [r15 + 0x30]
lea rdx, [r15 + 0x30]
sub edi, dword [r15 + 0x34]
mov rcx, qword [r15]
mov r8d, edi
call fcn.180013140
mov ecx, dword [r15 + 0x30]
movzx eax, di
sub ecx, eax
or word [r15 + 0x26], 2
mov dword [r15 + 0x34], ecx
cmp byte [rbx + 0x11], 0
je 0x180072c8a
sub dword [rbx + 0x14], 1
jne 0x180072c8a
mov rcx, rbx
call fcn.180018e20
mov r15, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov byte [r14 + 0x4e], 1
test r13, r13
je 0x180072cc5
mov rcx, qword [r13 + 8]
call fcn.18001aa90
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], 0
mov rcx, r14
call fcn.180046d20
mov eax, ebp
mov rbp, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1800cfa80
add rsp, 0xe0
pop r14
pop r13
pop rsi
ret