Function at 0x52ca10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x55]
test ecx, ecx
jne 0x52ca4e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ab1c0
add esp, 0xc
mov eax, 1
jmp 0x52d040
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xbc], 1
jle 0x52ca79
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ab1c0
add esp, 0xc
mov eax, 1
jmp 0x52d040
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x50], edx
cmp dword [ebp + 0x14], 0
je 0x52cae7
mov eax, dword [ebp + 0x14]
push eax
call fcn.004dbaa0
add esp, 4
cmp eax, 3
je 0x52cab8
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ab1c0
add esp, 0xc
mov eax, 1
jmp 0x52d040
mov eax, dword [ebp + 0x14]
push eax
call fcn.004dba40
add esp, 4
mov dword [ebp - 0x48], 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 0x52caee
mov dword [ebp - 0x48], 0x6409ec
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x40], edx
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x10], ecx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x5e]
mov byte [ebp - 0x41], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
or eax, 0x201
mov ecx, dword [edx + 0x24]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
or ecx, 6
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
and ecx, 0xefffafff
mov edx, dword [eax + 0x24]
and edx, 0xfffffffe
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x5e], 0
mov edx, dword [ebp + 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx + ecx]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d16a0
add esp, 4
push eax
call fcn.004bfc20
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x48]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0052c8a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x3c], edx
cmp dword [ebp - 0x14], 0
je 0x52cbeb
jmp 0x52cfa6
mov eax, dword [ebp - 0x34]
shl eax, 4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x52cc8d
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d16a0
add esp, 4
push eax
call fcn.004bfff0
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x58]
cmp dword [edx], 0
je 0x52cc7e
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004a9450
add esp, 8
test eax, eax
jne 0x52cc5d
cmp dword [ebp - 0x5c], 0
jl 0x52cc7e
jg 0x52cc5d
cmp dword [ebp - 0x60], 0
jbe 0x52cc7e
mov dword [ebp - 0x14], 1
push str.output_file_already_exists
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ab1c0
add esp, 0xc
jmp 0x52cfa6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
or edx, 8
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004c7f80
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c7d20
add esp, 8
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.004c7d60
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004c7d60
add esp, 8
push 0x21
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c7e00
add esp, 8
push str.BEGIN
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0052c7b0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52cd08
jmp 0x52cfa6
push 0
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004c8720
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52cd32
jmp 0x52cfa6
mov eax, dword [ebp - 0x28]
push eax
call fcn.004d16a0
add esp, 4
push eax
call fcn.004c0420
add esp, 4
cmp eax, 5
jne 0x52cd5c
cmp dword [ebp + 0x14], 0
jne 0x52cd5c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x64], 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c7f50
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c7e40
add esp, 0x10
test eax, eax
jne 0x52cdad
cmp dword [ebp - 0x30], 0
jne 0x52cda2
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c7e40
add esp, 0x10
test eax, eax
jne 0x52cdad
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x57]
test ecx, ecx
je 0x52cdb9
mov dword [ebp - 0x14], 7
jmp 0x52cfa6
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x5a]
test eax, eax
jl 0x52cdd0
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x5a]
mov dword [ebp - 0x6c], edx
jmp 0x52cddf
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c8130
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c80a0
add esp, 8
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x34]
mov byte [eax + 0xb0], cl
mov edx, dword [ebp - 0x54]
push edx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052c8a0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52ce22
jmp 0x52cfa6
mov edx, dword [ebp - 0x54]
push edx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052c8a0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52ce49
jmp 0x52cfa6
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xb0], 0
mov eax, dword [ebp - 0x54]
push eax
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0052c8a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
and ecx, 0xfffffffb
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
cmp dword [ebp - 0x14], 0
je 0x52ce89
jmp 0x52cfa6
mov eax, dword [ebp - 0x54]
push eax
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0052c8a0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52ceb0
jmp 0x52cfa6
mov dword [ebp - 0x64], 0
jmp 0x52cec2
mov eax, dword [ebp - 0x64]
add eax, 2
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xa
jge 0x52cf18
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x596570]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d1420
add esp, 0xc
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x596571]
add eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x596570]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004d1490
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52cf16
jmp 0x52cfa6
jmp 0x52ceb9
cmp dword [ebp + 0x14], 0
jne 0x52cf31
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d3bc0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52cf39
jmp 0x52cfa6
mov eax, dword [ebp - 4]
push eax
call fcn.004c9860
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x52cf50
jmp 0x52cfa6
cmp dword [ebp + 0x14], 0
jne 0x52cf6f
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c8130
add esp, 4
push eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.004c80a0
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x52cfa6
mov eax, dword [ebp - 4]
push eax
call fcn.004c7f80
add esp, 4
mov dword [ebp - 0x2c], eax
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c7f50
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c7e40
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xb0], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x68], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x70], edx
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x74], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x41]
mov byte [ecx + 0x5e], dl
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c7e40
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x55], 1
cmp dword [ebp - 0x4c], 0
je 0x52d031
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call fcn.004c7c20
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00500dd0
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret