Function at 0x100a9b50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, edx
mov dword [esp + 0x20], 0
push esi
mov esi, ecx
push edi
cmp byte [ebx + 0x4f], 0
mov dword [esp + 0x14], esi
jne 0x100a9bb1
mov edx, dword [esi]
test edx, edx
je 0x100a9b7f
mov ecx, ebx
call fcn.1002a220
push 0
push 0x28
mov ecx, ebx
call fcn.1002a520
mov edi, eax
add esp, 8
test edi, edi
je 0x100a9ba3
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push edi
call fcn.101d3050
add esp, 0xc
mov dword [esi], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xb0], 1
jle 0x100a9be4
mov edx, dword [esi]
test edx, edx
je 0x100a9bc7
mov ecx, ebx
call fcn.1002a220
push 0
push 0x2b
mov ecx, ebx
call fcn.1002a520
mov edi, eax
add esp, 8
test edi, edi
je 0x100a9ba3
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x100a9b9a
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x64]
mov dword [esp + 0x24], ecx
mov cl, byte [ebx + 0x58]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [esp + 0x38], edx
and edx, 0xfffffffe
mov dword [ebx + 0x24], edx
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x24]
shl edx, 4
and ecx, 0xefffafff
mov byte [ebx + 0x58], 0
or ecx, 0x201
mov dword [ebx + 0x20], ecx
mov dword [esp + 0x3c], esi
mov esi, dword [ebx + 0x68]
mov ecx, dword [edx + eax]
mov dword [esp + 0x40], esi
mov esi, dword [edx + eax + 4]
push 0x103d28b0
push str.ATTACH__Q_AS_vacuum_db
push dword [esp + 0x1c]
mov eax, dword [esi + 4]
push ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [esp + 0x22], al
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x30], eax
call fcn.10091960
mov dword [ebx + 0x3c], edi
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x100a9f25
mov eax, dword [esp + 0x20]
shl eax, 4
add eax, dword [ebx + 0x10]
cmp dword [ebx + 0x5c], 0
mov dword [esp + 0x28], eax
mov edi, dword [eax + 4]
mov dword [esp + 0x18], edi
je 0x100a9cc3
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.100aaca0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x100a9cc3
mov dword [ebx + 0x5c], 0
mov edx, dword [ebx + 0x10]
mov ecx, edi
mov eax, dword [esp + 0x30]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.1003e260
xor edx, edx
mov ecx, esi
call fcn.1003e2e0
mov edx, eax
mov ecx, edi
call fcn.1003e2e0
mov edx, 0x21
mov ecx, edi
call fcn.1003e3e0
mov edx, dword [esp + 0x14]
mov ecx, ebx
push str.BEGIN
call fcn.10091880
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a9f25
push eax
lea edx, [eax + 2]
mov ecx, esi
call fcn.1003eb60
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a9f25
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100a9d3c
mov dword [ebx + 0x5c], edi
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push dword [ebp + 0x10]
call fcn.1003e4b0
add esp, 8
test eax, eax
jne 0x100a9f20
cmp byte [esp + 0x12], al
jne 0x100a9d79
mov edx, dword [ebx + 0x5c]
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.1003e4b0
add esp, 8
test eax, eax
jne 0x100a9f20
cmp byte [ebx + 0x51], 0
jne 0x100a9f20
mov al, byte [ebx + 0x54]
test al, al
js 0x100a9d8f
movsx eax, al
jmp 0x100a9d96
mov ecx, esi
call fcn.1003e720
mov edx, eax
mov ecx, edi
call fcn.1003e6a0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [ebx + 0xa4], al
push ebx
call fcn.10091960
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100a9f25
push dword [esp + 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x1c]
push ebx
call fcn.10091960
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100a9f25
push dword [esp + 0x1c]
mov byte [ebx + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
push ebx
call fcn.10091960
and dword [ebx + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100a9f25
push dword [esp + 0x1c]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push ebx
call fcn.10091960
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100a9f25
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov cl, byte [esi + 9]
movzx edi, byte [eax + 0x103d7324]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test cl, cl
je 0x100a9e6c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100a9e6c
mov ecx, esi
call fcn.1003bce0
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x30]
cmp edi, 0xf
jne 0x100a9e7b
mov eax, dword [eax]
mov edi, dword [eax + 0x64]
add edi, dword [esi + 0x14]
jmp 0x100a9e87
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + edi*4 + 0x24]
bswap edi
test cl, cl
je 0x100a9e98
add dword [esi + 0xc], 0xffffffff
jne 0x100a9e98
mov ecx, esi
call fcn.1003bca0
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ecx + 0x103d7325]
movzx edx, byte [ecx + 0x103d7324]
add eax, edi
mov ecx, dword [esp + 0x18]
push eax
call fcn.10045c00
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a9f25
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x100a9e40
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.10047aa0
mov edi, eax
test edi, edi
jne 0x100a9f25
mov ecx, dword [esp + 0x18]
call fcn.1003fb00
mov edi, eax
test edi, edi
jne 0x100a9f25
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.1003e720
mov edx, eax
mov ecx, esi
call fcn.1003e6a0
mov eax, dword [edi + 4]
mov ecx, esi
push 1
push dword [ebp + 0x10]
mov edx, dword [eax + 0x24]
call fcn.1003e4b0
add esp, 8
mov edi, eax
jmp 0x100a9f25
mov edi, 7
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x68], eax
mov al, byte [esp + 0x13]
push 1
push 0xffffffffffffffff
mov byte [ebx + 0xa4], 0
mov byte [ebx + 0x58], al
call fcn.1003e4b0
mov esi, dword [esp + 0x30]
add esp, 8
mov byte [ebx + 0x4f], 1
test esi, esi
je 0x100a9f89
mov ecx, dword [esi + 4]
call fcn.1003e0e0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.1006af70
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret