Function at 0x4c33f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x43]
test ecx, ecx
jne 0x4c342e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c1a00
add esp, 0xc
mov eax, 1
jmp 0x4c3897
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x9c], 1
jle 0x4c3459
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c1a00
add esp, 0xc
mov eax, 1
jmp 0x4c3897
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0x4c]
mov byte [ebp - 0x25], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
or ecx, 0x6000201
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
and ecx, 0xffffaf7f
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4c], 0
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048a6a0
add esp, 4
push eax
call fcn.00497f80
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x20], edx
push str.ATTACHAS_vacuum_db
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c3c40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c3511
jmp 0x4c3818
mov edx, dword [ebp - 0x20]
shl edx, 4
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.004c1a70
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c3990
add esp, 4
mov dword [ebp - 0x18], 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.004c1a30
add esp, 8
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.004c38a0
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004c38a0
add esp, 8
push 0x21
mov ecx, dword [ebp - 4]
push ecx
call fcn.004bb8e0
add esp, 8
push str.BEGIN
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c3c40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c35b0
jmp 0x4c3818
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00493910
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c35cc
jmp 0x4c3818
mov edx, dword [ebp - 0x14]
push edx
call fcn.0048a6a0
add esp, 4
push eax
call fcn.004907c0
add esp, 4
cmp eax, 5
jne 0x4c35f0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x50], 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00492c70
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00497c50
add esp, 0x10
test eax, eax
jne 0x4c3641
cmp dword [ebp - 0x1c], 0
jne 0x4c3636
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00497c50
add esp, 0x10
test eax, eax
jne 0x4c3641
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x45]
test eax, eax
je 0x4c364d
mov dword [ebp - 0xc], 7
jmp 0x4c3818
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x48]
test edx, edx
jl 0x4c3664
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x48]
mov dword [ebp - 0x3c], ecx
jmp 0x4c3673
mov edx, dword [ebp - 0x14]
push edx
call fcn.004c3a80
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c39f0
add esp, 8
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x20]
mov byte [edx + 0x98], al
mov ecx, dword [ebp - 0x30]
push ecx
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c3d00
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c36b6
jmp 0x4c3818
mov ecx, dword [ebp - 0x30]
push ecx
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c3d00
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c36dd
jmp 0x4c3818
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x98], 0
mov edx, dword [ebp - 0x30]
push edx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c3d00
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
and eax, 0xfbffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
cmp dword [ebp - 0xc], 0
je 0x4c371f
jmp 0x4c3818
mov edx, dword [ebp - 0x30]
push edx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c3d00
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c3746
jmp 0x4c3818
mov dword [ebp - 0x34], 0
jmp 0x4c3758
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0xa
jge 0x4c37ab
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x64b3a0]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00497a30
add esp, 0xc
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x64b3a1]
add edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0x64b3a0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00497ab0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c37a9
jmp 0x4c3818
jmp 0x4c374f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c3ae0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c37c6
jmp 0x4c3818
mov edx, dword [ebp - 4]
push edx
call fcn.004c1a70
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c37dd
jmp 0x4c3818
mov eax, dword [ebp - 4]
push eax
call fcn.004c3a80
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c39f0
add esp, 8
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00492c70
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00497c50
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x98], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x25]
mov byte [eax + 0x4c], cl
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call fcn.00497c50
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x43], 1
cmp dword [ebp - 0x2c], 0
je 0x4c3888
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call fcn.00499f20
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bc990
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret