Function at 0x4b8d10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x43]
test ecx, ecx
jne 0x4b8d4e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a9260
add esp, 0xc
mov eax, 1
jmp 0x4b91e7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x9c], 1
jle 0x4b8d79
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a9260
add esp, 0xc
mov eax, 1
jmp 0x4b91e7
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, 0x10202800
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
and ecx, 0xfff5ff7f
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.00489160
add esp, 4
push eax
call fcn.004826d0
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.004b8be0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b8e31
jmp 0x4b9168
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.00494580
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048a2d0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x50], 0
je 0x4b8e93
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046af80
add esp, 0x10
cmp dword [ebp - 0x38], 0
je 0x4b8e93
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0048a3b0
add esp, 8
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048a360
add esp, 8
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0048a360
add esp, 8
push 0x21
mov eax, dword [ebp - 4]
push eax
call fcn.0048a320
add esp, 8
push 0x4ce600
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b8be0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b8eff
jmp 0x4b9168
push 2
mov eax, dword [ebp - 0x14]
push eax
call fcn.004953d0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b8f1b
jmp 0x4b9168
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00489160
add esp, 4
push eax
call fcn.00482530
add esp, 4
cmp eax, 5
jne 0x4b8f3f
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x50], 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004893a0
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004945d0
add esp, 0x10
test eax, eax
jne 0x4b8f90
cmp dword [ebp - 0x1c], 0
jne 0x4b8f85
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004945d0
add esp, 0x10
test eax, eax
jne 0x4b8f90
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x45]
test edx, edx
je 0x4b8f9c
mov dword [ebp - 0xc], 7
jmp 0x4b9168
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x48]
test ecx, ecx
jl 0x4b8fb3
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x48]
mov dword [ebp - 0x44], eax
jmp 0x4b8fc2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048a120
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0048a180
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x20]
mov byte [ecx + 0x98], dl
mov eax, dword [ebp - 0x30]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_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.004b8ca0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b9005
jmp 0x4b9168
mov eax, dword [ebp - 0x30]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b8ca0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b902c
jmp 0x4b9168
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x98], 0
mov ecx, dword [ebp - 0x30]
push ecx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b8ca0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 0xefffffff
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 0xc], 0
je 0x4b906f
jmp 0x4b9168
mov ecx, dword [ebp - 0x30]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b8ca0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b9096
jmp 0x4b9168
mov dword [ebp - 0x3c], 0
jmp 0x4b90a8
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0xa
jge 0x4b90fb
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x4c0a24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00489fc0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x4c0a25]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x4c0a24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0048aba0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b90f9
jmp 0x4b9168
jmp 0x4b909f
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00444f60
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b9116
jmp 0x4b9168
mov ecx, dword [ebp - 4]
push ecx
call fcn.00494580
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b912d
jmp 0x4b9168
mov edx, dword [ebp - 4]
push edx
call fcn.0048a120
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048a180
add esp, 8
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004893a0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004945d0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x98], 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 - 0x10]
mov dword [ecx + 0x58], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x25]
mov byte [edx + 0x4c], al
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004945d0
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x43], 1
cmp dword [ebp - 0x2c], 0
je 0x4b91d8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call fcn.004943a0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00498cf0
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret