Function at 0x573210
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x51]
test ecx, ecx
jne 0x57324e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0055c140
add esp, 0xc
mov eax, 1
jmp 0x573816
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xb4], 1
jle 0x573279
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0055c140
add esp, 0xc
mov eax, 1
jmp 0x573816
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0x14], 0
je 0x5732e7
mov eax, dword [ebp + 0x14]
push eax
call fcn.00547920
add esp, 4
cmp eax, 3
je 0x5732b8
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0055c140
add esp, 0xc
mov eax, 1
jmp 0x573816
mov eax, dword [ebp + 0x14]
push eax
call fcn.00547860
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
jmp 0x5732ee
mov dword [ebp - 0x24], 0x6c05e2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x5c], edx
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x6c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0x5a]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
or ecx, 0x201
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
and edx, 0xefffafff
mov eax, dword [ecx + 0x24]
and eax, 0xfffffffe
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x5a], 0
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00554600
add esp, 4
push eax
call fcn.00550a70
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005d40a0
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 8], 0
je 0x5733e0
jmp 0x573788
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x573478
mov edx, dword [ebp - 0xc]
push edx
call fcn.00554600
add esp, 4
push eax
call fcn.00550a00
add esp, 4
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x573469
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00558450
add esp, 8
test eax, eax
jne 0x573448
cmp dword [ebp - 0x50], 0
jl 0x573469
jg 0x573448
cmp dword [ebp - 0x54], 0
jbe 0x573469
mov dword [ebp - 8], 1
push str.output_file_already_exists
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c140
add esp, 0xc
jmp 0x573788
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
or eax, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00551820
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00551500
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00551540
add esp, 8
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00551540
add esp, 8
push 0x21
mov edx, dword [ebp - 0xc]
push edx
call fcn.005515e0
add esp, 8
push str.BEGIN
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005d3fb0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5734f3
jmp 0x573788
cmp dword [ebp + 0x14], 0
jne 0x573502
mov dword [ebp - 0x2c], 2
jmp 0x573509
mov dword [ebp - 0x2c], 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00551a00
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x573529
jmp 0x573788
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00554600
add esp, 4
push eax
call fcn.0054f620
add esp, 4
cmp eax, 5
jne 0x57354d
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x60], 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00551730
add esp, 4
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00551620
add esp, 0x10
test eax, eax
jne 0x57359e
cmp dword [ebp - 0x3c], 0
jne 0x573593
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00551620
add esp, 0x10
test eax, eax
jne 0x57359e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x53]
test edx, edx
je 0x5735aa
mov dword [ebp - 8], 7
jmp 0x573788
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x56]
test ecx, ecx
jl 0x5735c1
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x56]
mov dword [ebp - 0x30], eax
jmp 0x5735d0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00551960
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005518a0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x34]
mov byte [ecx + 0xa8], dl
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005d40a0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x573613
jmp 0x573788
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005d40a0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x57363a
jmp 0x573788
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa8], 0
mov ecx, dword [ebp - 0x1c]
push ecx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005d40a0
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 0xfffffffb
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 8], 0
je 0x57367a
jmp 0x573788
mov ecx, dword [ebp - 0x1c]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005d40a0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5736a1
jmp 0x573788
mov dword [ebp - 0x14], 0
jmp 0x5736b3
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xa
jge 0x573709
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x688b84]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005528a0
add esp, 0xc
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x688b85]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x688b84]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00552910
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x573707
jmp 0x573788
jmp 0x5736aa
cmp dword [ebp + 0x14], 0
jne 0x573722
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00552450
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x57372a
jmp 0x573788
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00551f50
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x573741
jmp 0x573788
cmp dword [ebp + 0x14], 0
jne 0x573760
mov edx, dword [ebp - 0xc]
push edx
call fcn.00551960
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.005518a0
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x573788
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00551730
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00551620
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa8], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x68], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x6c], ecx
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 1]
mov byte [edx + 0x5a], al
push 1
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00551620
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x51], 1
cmp dword [ebp - 0x18], 0
je 0x573807
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call fcn.00551400
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00561ff0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret