Function at 0x472670
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x47]
test ecx, ecx
jne 0x4726ae
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407b30
add esp, 0xc
mov eax, 1
jmp 0x472b37
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xa0], 1
jle 0x4726d9
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407b30
add esp, 0xc
mov eax, 1
jmp 0x472b37
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x18]
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x50]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
or eax, 0x201
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
or eax, 6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
and eax, 0xffffaf7f
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x50], 0
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [eax + edx]
mov dword [ebp - 0x34], 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 - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004292b0
add esp, 4
push eax
call fcn.00419bd0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x24], ecx
push str.ATTACHAS_vacuum_db
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004724c0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4727a9
jmp 0x472aae
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004228b0
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.004211f0
add esp, 4
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 + 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00420fb0
add esp, 8
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00420ff0
add esp, 8
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00420ff0
add esp, 8
push 0x21
mov eax, dword [ebp - 4]
push eax
call fcn.00421090
add esp, 8
push 0x4b3c1c
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004724c0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472848
jmp 0x472aae
push 2
mov eax, dword [ebp - 0x18]
push eax
call fcn.00421930
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472864
jmp 0x472aae
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004292b0
add esp, 4
push eax
call fcn.0041a300
add esp, 4
cmp eax, 5
jne 0x472888
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x54], 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004211c0
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004210d0
add esp, 0x10
test eax, eax
jne 0x4728d9
cmp dword [ebp - 0x20], 0
jne 0x4728ce
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004210d0
add esp, 0x10
test eax, eax
jne 0x4728d9
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x49]
test edx, edx
je 0x4728e5
mov dword [ebp - 0xc], 7
jmp 0x472aae
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x4c]
test ecx, ecx
jl 0x4728fc
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x4c]
mov dword [ebp - 0x40], eax
jmp 0x47290b
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00421380
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004212f0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x24]
mov byte [ecx + 0x9c], dl
mov eax, dword [ebp - 0x34]
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.00472580
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47294e
jmp 0x472aae
mov eax, dword [ebp - 0x34]
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.00472580
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472975
jmp 0x472aae
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x9c], 0
mov ecx, dword [ebp - 0x34]
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.00472580
add esp, 0x10
mov dword [ebp - 0xc], 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 - 0xc], 0
je 0x4729b5
jmp 0x472aae
mov ecx, dword [ebp - 0x34]
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.00472580
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4729dc
jmp 0x472aae
mov dword [ebp - 0x38], 0
jmp 0x4729ee
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0xa
jge 0x472a41
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x4a7f94]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00429040
add esp, 0xc
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x4a7f95]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0x4a7f94]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004290b0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472a3f
jmp 0x472aae
jmp 0x4729e5
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042b680
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472a5c
jmp 0x472aae
mov ecx, dword [ebp - 4]
push ecx
call fcn.004228b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472a73
jmp 0x472aae
mov edx, dword [ebp - 4]
push edx
call fcn.00421380
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004212f0
add esp, 8
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004211c0
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004210d0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x9c], 0
movzx edx, word [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + 0x60], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x29]
mov byte [ecx + 0x50], dl
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call fcn.004210d0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x47], 1
cmp dword [ebp - 0x30], 0
je 0x472b28
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.00420e80
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00450270
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret