Function at 0x10052a10
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 0x10052a4e
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10051110
add esp, 0xc
mov eax, 1
jmp 0x10052eb7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x9c], 1
jle 0x10052a79
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10051110
add esp, 0xc
mov eax, 1
jmp 0x10052eb7
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.1001b090
add esp, 4
push eax
call fcn.10028940
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.10053260
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052b31
jmp 0x10052e38
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.10051180
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10052fb0
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.10051140
add esp, 8
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.10052ec0
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10052ec0
add esp, 8
push 0x21
mov ecx, dword [ebp - 4]
push ecx
call fcn.1004b840
add esp, 8
push str.BEGIN
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10053260
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052bd0
jmp 0x10052e38
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10024250
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052bec
jmp 0x10052e38
mov edx, dword [ebp - 0x14]
push edx
call fcn.1001b090
add esp, 4
push eax
call fcn.100210f0
add esp, 4
cmp eax, 5
jne 0x10052c10
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.100235b0
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10028610
add esp, 0x10
test eax, eax
jne 0x10052c61
cmp dword [ebp - 0x1c], 0
jne 0x10052c56
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.10028610
add esp, 0x10
test eax, eax
jne 0x10052c61
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x45]
test eax, eax
je 0x10052c6d
mov dword [ebp - 0xc], 7
jmp 0x10052e38
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x48]
test edx, edx
jl 0x10052c84
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x48]
mov dword [ebp - 0x3c], ecx
jmp 0x10052c93
mov edx, dword [ebp - 0x14]
push edx
call fcn.100530a0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10053010
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.10053320
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052cd6
jmp 0x10052e38
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.10053320
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052cfd
jmp 0x10052e38
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.10053320
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
and eax, 0xefffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
cmp dword [ebp - 0xc], 0
je 0x10052d3f
jmp 0x10052e38
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.10053320
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052d66
jmp 0x10052e38
mov dword [ebp - 0x34], 0
jmp 0x10052d78
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0xa
jge 0x10052dcb
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x100aadc8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.100283f0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x100aadc9]
add edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0x100aadc8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10028470
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052dc9
jmp 0x10052e38
jmp 0x10052d6f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10053100
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052de6
jmp 0x10052e38
mov edx, dword [ebp - 4]
push edx
call fcn.10051180
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10052dfd
jmp 0x10052e38
mov eax, dword [ebp - 4]
push eax
call fcn.100530a0
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10053010
add esp, 8
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.100235b0
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10028610
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.10028610
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x43], 1
cmp dword [ebp - 0x2c], 0
je 0x10052ea8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call fcn.1002a930
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.1004c890
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret