Function at 0x451810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], 0
cmp byte [esi + 0x47], 0
jne 0x45189f
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x45186f
cmp dword [esi + 0x1d0], 0
je 0x451846
push ecx
push esi
call fcn.00427160
add esp, 8
jmp 0x45186f
cmp ecx, dword [esi + 0x128]
jb 0x451866
cmp ecx, dword [esi + 0x12c]
jae 0x451866
mov eax, dword [esi + 0x124]
mov dword [ecx], eax
mov dword [esi + 0x124], ecx
jmp 0x45186f
push ecx
call fcn.00405c40
add esp, 4
push 0
push 0x28
push esi
call fcn.0043aed0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x451892
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.00521b30
add esp, 0xc
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xa0], 1
jle 0x4518c4
push str.cannot_VACUUM___SQL_statements_in_progress
push esi
push dword [ebp + 8]
call fcn.00454c60
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
movzx ecx, word [esi + 0x18]
mov edx, dword [ebp + 0x10]
or dword [esi + 0x18], 6
mov dword [ebp - 0x24], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x60]
shl edx, 4
mov dword [ebp - 0x2c], ecx
mov cl, byte [esi + 0x50]
mov byte [esi + 0x50], 0
push ebx
mov ebx, dword [edx + eax + 4]
mov byte [ebp - 1], cl
mov ecx, dword [edx + eax]
push str.ATTACHAS_vacuum_db
mov eax, dword [ebx + 4]
push dword [ebp + 8]
mov dword [ebp + 0x10], edx
push esi
mov eax, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ebx
mov al, byte [eax + 0xc]
mov byte [ebp + 0xf], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
call fcn.0041d270
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x451b88
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 4]
push edi
mov dword [ebp - 8], edi
call fcn.004359e0
add esp, 4
cmp byte [ebx + 9], 0
je 0x451971
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x451971
push ebx
call fcn.004167a0
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [ebx + 9], 0
mov dword [ebp - 0x10], ecx
je 0x451992
add dword [ebx + 0xc], 0xffffffff
jne 0x451992
push ebx
call fcn.0046b6e0
add esp, 4
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + eax + 0xc]
push dword [eax + 0x50]
push edi
call fcn.00437ce0
push 0
push ebx
call fcn.00437f10
push eax
push edi
call fcn.00437f10
push 0x21
push edi
call fcn.00437e40
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.0041d270
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x451b88
push 2
push ebx
call fcn.00435440
mov edi, eax
add esp, 8
test edi, edi
jne 0x451b88
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4519fa
mov dword [esi + 0x54], edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push dword [eax + 0x20]
push edi
call fcn.00437d70
add esp, 0x10
test eax, eax
jne 0x451b7e
cmp byte [ebp + 0xf], al
jne 0x451a36
push eax
push dword [ebp - 0x10]
push dword [esi + 0x54]
push edi
call fcn.00437d70
add esp, 0x10
test eax, eax
jne 0x451b7e
cmp byte [esi + 0x49], 0
jne 0x451b7e
mov al, byte [esi + 0x4c]
test al, al
js 0x451a4c
movsx eax, al
jmp 0x451a55
push ebx
call fcn.00436320
add esp, 4
push eax
push edi
call fcn.00437c60
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [esi + 0x9c], al
push esi
call fcn.0041d320
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x451b88
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp + 8]
push esi
call fcn.0041d320
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x451b88
push dword [ebp - 0xc]
mov byte [esi + 0x9c], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
push esi
call fcn.0041d320
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x451b88
push dword [ebp - 0xc]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push esi
call fcn.0041d320
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x451b88
xor ebx, ebx
nop dword [eax]
lea eax, [ebp + 0xc]
push eax
movzx eax, byte [ebx + 0x54a3b4]
push eax
push dword [ebp - 0x14]
call fcn.00436390
movzx eax, byte [ebx + 0x54a3b5]
add eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebx + 0x54a3b4]
push eax
push dword [ebp - 8]
call fcn.00438170
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x451b85
add ebx, 2
cmp ebx, 0xa
jl 0x451af0
push dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00435bc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x451b88
push dword [ebp - 8]
call fcn.004359e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x451b88
mov edi, dword [ebp - 8]
push edi
call fcn.00436320
push eax
push ebx
call fcn.00437c60
mov eax, dword [edi + 4]
push 1
push dword [ebp - 0x10]
push dword [eax + 0x20]
push ebx
call fcn.00437d70
add esp, 0x1c
mov edi, eax
jmp 0x451b88
mov edi, 7
jmp 0x451b88
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
movzx eax, ax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
push 1
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
mov dword [esi + 0x60], eax
mov al, byte [ebp - 1]
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x9c], 0
mov byte [esi + 0x50], al
call fcn.00437d70
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
mov byte [esi + 0x47], 1
test ebx, ebx
je 0x451be3
push dword [ebx + 4]
call fcn.00435780
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.004507c0
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret