Function at 0x5269c0
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 0x5269fe
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a5180
add esp, 0xc
mov eax, 1
jmp 0x526ff0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xbc], 1
jle 0x526a29
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a5180
add esp, 0xc
mov eax, 1
jmp 0x526ff0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x50], edx
cmp dword [ebp + 0x14], 0
je 0x526a97
mov eax, dword [ebp + 0x14]
push eax
call fcn.004d5a60
add esp, 4
cmp eax, 3
je 0x526a68
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a5180
add esp, 0xc
mov eax, 1
jmp 0x526ff0
mov eax, dword [ebp + 0x14]
push eax
call fcn.004d5a00
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 0x526a9e
mov dword [ebp - 0x48], 0x63a990
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.004cb670
add esp, 4
push eax
call fcn.004b9c00
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.00526850
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 0x526b9b
jmp 0x526f56
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 0x526c3d
mov ecx, dword [ebp - 4]
push ecx
call fcn.004cb670
add esp, 4
push eax
call fcn.004b9fd0
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 0x526c2e
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004a3420
add esp, 8
test eax, eax
jne 0x526c0d
cmp dword [ebp - 0x5c], 0
jl 0x526c2e
jg 0x526c0d
cmp dword [ebp - 0x60], 0
jbe 0x526c2e
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.004a5180
add esp, 0xc
jmp 0x526f56
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.004c1f70
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.004c1d10
add esp, 8
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.004c1d50
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004c1d50
add esp, 8
push 0x21
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c1df0
add esp, 8
push str.BEGIN
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00526760
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526cb8
jmp 0x526f56
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.004c2710
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526ce2
jmp 0x526f56
mov eax, dword [ebp - 0x28]
push eax
call fcn.004cb670
add esp, 4
push eax
call fcn.004ba3f0
add esp, 4
cmp eax, 5
jne 0x526d0c
cmp dword [ebp + 0x14], 0
jne 0x526d0c
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.004c1f40
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c1e30
add esp, 0x10
test eax, eax
jne 0x526d5d
cmp dword [ebp - 0x30], 0
jne 0x526d52
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.004c1e30
add esp, 0x10
test eax, eax
jne 0x526d5d
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x57]
test ecx, ecx
je 0x526d69
mov dword [ebp - 0x14], 7
jmp 0x526f56
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x5a]
test eax, eax
jl 0x526d80
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x5a]
mov dword [ebp - 0x6c], edx
jmp 0x526d8f
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c2120
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c2090
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.00526850
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526dd2
jmp 0x526f56
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.00526850
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526df9
jmp 0x526f56
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.00526850
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 0x526e39
jmp 0x526f56
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.00526850
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526e60
jmp 0x526f56
mov dword [ebp - 0x64], 0
jmp 0x526e72
mov eax, dword [ebp - 0x64]
add eax, 2
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xa
jge 0x526ec8
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x590550]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004cb3f0
add esp, 0xc
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x590551]
add eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x590550]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004cb460
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526ec6
jmp 0x526f56
jmp 0x526e69
cmp dword [ebp + 0x14], 0
jne 0x526ee1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004cdb90
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526ee9
jmp 0x526f56
mov eax, dword [ebp - 4]
push eax
call fcn.004c3850
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x526f00
jmp 0x526f56
cmp dword [ebp + 0x14], 0
jne 0x526f1f
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c2120
add esp, 4
push eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.004c2090
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x526f56
mov eax, dword [ebp - 4]
push eax
call fcn.004c1f70
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.004c1f40
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c1e30
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.004c1e30
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x55], 1
cmp dword [ebp - 0x4c], 0
je 0x526fe1
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call fcn.004c1c10
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.004fad90
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret