Function at 0x4bd7c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x20], 0
push edi
mov edi, ecx
mov dword [ebp - 8], edi
cmp byte [esi + 0x47], 0
jne 0x4bd86c
mov edx, dword [edi]
test edx, edx
je 0x4bd822
cmp dword [esi + 0x1d8], 0
je 0x4bd7f9
mov ecx, esi
call fcn.00459240
jmp 0x4bd822
cmp edx, dword [esi + 0x128]
jb 0x4bd819
cmp edx, dword [esi + 0x12c]
jae 0x4bd819
mov eax, dword [esi + 0x124]
mov dword [edx], eax
mov dword [esi + 0x124], edx
jmp 0x4bd822
push edx
call fcn.00459190
add esp, 4
mov ecx, str.cannot_VACUUM_from_within_a_transaction
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd830
sub ecx, edx
push 0
lea ebx, [ecx + 1]
mov ecx, esi
push ebx
call fcn.004595f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4bd85e
push ebx
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.00516840
add esp, 0xc
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xa4], 1
jle 0x4bd88e
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.00459960
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
movzx ecx, word [esi + 0x18]
mov edx, dword [ebp + 8]
or dword [esi + 0x18], 6
mov dword [ebp - 0x28], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x60]
shl edx, 4
mov dword [ebp - 0x30], ecx
mov cl, byte [esi + 0x50]
mov byte [esi + 0x50], 0
mov ebx, dword [eax + edx + 4]
mov byte [ebp - 2], cl
mov ecx, dword [eax + edx]
mov dword [ebp + 8], edx
mov edx, edi
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, esi
push str.ATTACHAS_vacuum_db
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp - 1], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
call fcn.004bd5d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bdb58
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0xc], edi
call fcn.0046f350
mov cl, byte [ebx + 9]
test cl, cl
je 0x4bd93a
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4bd93a
mov ecx, ebx
call fcn.0046b580
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
test cl, cl
je 0x4bd957
add dword [ebx + 0xc], 0xffffffff
jne 0x4bd957
mov ecx, ebx
call fcn.0046b530
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.0046dad0
xor edx, edx
mov ecx, ebx
call fcn.0046db60
mov edx, eax
mov ecx, edi
call fcn.0046db60
mov edx, 0x21
mov ecx, edi
call fcn.0046dc60
mov edx, dword [ebp - 8]
mov ecx, esi
push 0x5971a4
call fcn.004bd5d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bdb58
lea edx, [eax + 2]
mov ecx, ebx
call fcn.0046e420
mov edi, eax
test edi, edi
jne 0x4bdb58
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x4bd9ca
mov dword [esi + 0x54], edi
mov edx, dword [ebx + 4]
mov edi, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x14]
call fcn.0046dd30
add esp, 8
test eax, eax
jne 0x4bdb4e
cmp byte [ebp - 1], al
jne 0x4bda05
mov edx, dword [esi + 0x54]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.0046dd30
add esp, 8
test eax, eax
jne 0x4bdb4e
cmp byte [esi + 0x49], 0
jne 0x4bdb4e
mov al, byte [esi + 0x4c]
test al, al
js 0x4bda1b
movsx eax, al
jmp 0x4bda22
mov ecx, ebx
call fcn.0046df40
mov edx, eax
mov ecx, edi
call fcn.0046dec0
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 8]
mov byte [esi + 0x9c], al
push esi
call fcn.004bd6a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bdb58
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 8]
push esi
call fcn.004bd6a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bdb58
push dword [ebp - 0x10]
mov byte [esi + 0x9c], 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 [ebp - 8]
push esi
call fcn.004bd6a0
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bdb58
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 8]
push esi
call fcn.004bd6a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bdb58
xor ebx, ebx
nop dword [eax + eax]
movzx edx, byte [ebx + 0x576ce4]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00474c60
movzx eax, byte [ebx + 0x576ce5]
add esp, 4
add eax, dword [ebp - 0x1c]
movzx edx, byte [ebx + 0x576ce4]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00474cc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bdb55
add ebx, 2
cmp ebx, 0xa
jl 0x4bdac0
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
call fcn.00476b20
mov edi, eax
test edi, edi
jne 0x4bdb58
mov ecx, dword [ebp - 0xc]
call fcn.0046f350
mov edi, eax
test edi, edi
jne 0x4bdb58
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.0046df40
mov edx, eax
mov ecx, ebx
call fcn.0046dec0
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.0046dd30
add esp, 8
mov edi, eax
jmp 0x4bdb58
mov edi, 7
jmp 0x4bdb58
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
or edx, 0xffffffff
movzx eax, ax
mov ecx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x60], eax
mov al, byte [ebp - 2]
push 1
push 0xffffffffffffffff
mov byte [esi + 0x9c], 0
mov byte [esi + 0x50], al
call fcn.0046dd30
mov ebx, dword [ebp - 0x20]
add esp, 8
mov byte [esi + 0x47], 1
test ebx, ebx
je 0x4bdbb2
mov ecx, dword [ebx + 4]
call fcn.0046d910
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.00498e50
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret