Function at 0x455387
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
and dword [esp + 0x20], 0
cmp byte [edi + 0x4f], 0
push ebx
push esi
jne 0x4553b5
mov esi, dword [ebp + 8]
push str.cannot_VACUUM_from_within_a_transaction
push edi
call fcn.0041251f
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x45558c
xor ebx, ebx
inc ebx
cmp dword [edi + 0xb0], ebx
jle 0x4553d5
push str.cannot_VACUUM___SQL_statements_in_progress
mov esi, dword [ebp + 8]
push edi
call fcn.0041251f
pop ecx
pop ecx
jmp 0x45558a
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x455411
movzx ecx, word [eax + 8]
and ecx, 0x3f
cmp byte [ecx + 0x4a2070], 3
je 0x4553fa
push str.non_text_filename
jmp 0x4553c5
push ebx
push eax
call fcn.00427768
pop ecx
pop ecx
mov ecx, dword [edi + 0x3c]
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x455416
mov eax, 0x4bc53c
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ebx, dword [edi + 0x64]
mov esi, dword [edi + 0x18]
mov dword [esp + 0x40], ecx
or ecx, 0x201
mov dword [edi + 0x20], ecx
and dword [edi + 0x20], 0xefffaf7f
mov ecx, edx
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp + 0xc]
shl ecx, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edx
mov edx, dword [edi + 0x10]
add ecx, edx
mov dword [esp + 0x38], ebx
mov ebx, dword [edi + 0x68]
mov dword [esp + 0x34], esi
or esi, 6
mov dword [edi + 0x18], esi
mov dword [esp + 0x3c], ebx
mov bl, byte [edi + 0x58]
mov byte [edi + 0x58], 0
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + 0xc]
push eax
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x14]
push edi
mov byte [esp + 0x1b], bl
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], ecx
call fcn.004552a7
mov ebx, eax
mov eax, dword [esp + 0x28]
xor edx, edx
add esp, 0x10
mov dword [edi + 0x3c], eax
cmp ebx, edx
jne 0x455524
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, dword [edi + 0x10]
mov ebx, dword [eax + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebx
cmp dword [ebp + 0x10], edx
je 0x455596
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
cmp ecx, edx
je 0x455592
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x45550d
cmp dword [esp + 0x1c], eax
jl 0x455592
jg 0x45550d
cmp dword [esp + 0x18], eax
jbe 0x455592
mov esi, dword [ebp + 8]
xor ebx, ebx
push str.output_file_already_exists
push edi
inc ebx
call fcn.0041251f
pop ecx
pop ecx
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x68], eax
mov al, byte [esp + 0xb]
mov byte [edi + 0x58], al
mov eax, 0xffffffff
push 1
mov edx, eax
mov ecx, esi
mov byte [edi + 0xa4], 0
call fcn.00420404
mov esi, dword [esp + 0x2c]
pop ecx
mov byte [edi + 0x4f], 1
test esi, esi
je 0x455583
push dword [esi + 4]
call fcn.00420340
and dword [esi + 4], 0
and dword [esi + 0xc], 0
pop ecx
mov eax, edi
call fcn.0043de6a
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [edi + 0x18], 8
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax + 0xc]
push dword [eax + 0x50]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
call fcn.0041a96d
pop ecx
xor ecx, ecx
mov edx, esi
call fcn.004203b2
mov ecx, eax
mov edx, ebx
call fcn.004203b2
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x21
call fcn.0041a9ea
mov dword [esp], str.BEGIN
push dword [ebp + 8]
push edi
call fcn.004551d7
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x455524
push eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
mov ebx, esi
call fcn.00420859
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x455524
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x455626
and dword [edi + 0x5c], ebx
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor ebx, ebx
push ebx
call fcn.00420404
pop ecx
test eax, eax
jne 0x4557d5
cmp dword [esp + 0x30], ebx
jne 0x455665
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x5c]
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00420404
pop ecx
test eax, eax
jne 0x4557d5
cmp byte [edi + 0x51], 0
jne 0x4557d5
mov al, byte [edi + 0x54]
test al, al
jl 0x45567b
movsx eax, al
jmp 0x455682
mov eax, esi
call fcn.004204d4
push eax
mov eax, dword [esp + 0x14]
call fcn.00420498
mov al, byte [esp + 0x28]
pop ecx
push dword [esp + 0x14]
mov byte [edi + 0xa4], al
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
push edi
call fcn.004552a7
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x455524
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp + 8]
push edi
call fcn.004552a7
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x455524
push dword [esp + 0x14]
mov byte [edi + 0xa4], 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 edi
call fcn.004552a7
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x455524
push dword [esp + 0x14]
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 edi
call fcn.004552a7
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x455524
and dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
lea ebx, [ebx + 0x4a2d44]
movzx edx, byte [ebx]
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], edx
call fcn.0042547d
movzx eax, byte [ebx + 1]
add eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
call fcn.004254a1
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x455520
add dword [esp + 0x14], 2
cmp dword [esp + 0x14], 0xa
jl 0x455721
cmp dword [ebp + 0x10], eax
jne 0x455788
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.004269db
mov ebx, eax
test ebx, ebx
jne 0x455520
mov esi, dword [esp + 0x10]
mov eax, esi
call fcn.00421122
mov ebx, eax
test ebx, ebx
jne 0x455520
cmp dword [ebp + 0x10], eax
jne 0x455520
mov eax, esi
call fcn.004204d4
push eax
mov eax, dword [esp + 0x10]
call fcn.00420498
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0xc]
push 1
call fcn.00420404
pop ecx
mov ebx, eax
jmp 0x455520
push 7
pop ebx
jmp 0x455524