Function at 0x4b4370
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x179]
test al, al
push edi
mov dword [esp + 0xc], 0
jne 0x4b43a8
mov eax, dword [esp + 0x14]
push 0
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.004921b0
add esp, 0xc
mov ebx, 1
jmp 0x4b4583
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.0049bbb0
mov edi, eax
mov al, byte [edi]
add esp, 4
test al, al
jne 0x4b43ca
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b43d0
sub eax, edx
mov ebx, eax
lea edx, [ebx + 0x64]
push ebp
push edx
call fcn.00492000
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4b43fc
mov ebx, 7
jmp 0x4b4582
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b4402
lea edi, [ebx + ebp + 1]
mov eax, edi
mov byte [ebx + ebp], 0x2d
call fcn.004b41a0
push ebp
call fcn.0049c040
add esp, 4
test eax, eax
jne 0x4b4410
push ebp
push str.ATTACH__q_AS_vacuum_db_
call fcn.004a23a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b4446
mov ebx, 7
jmp 0x4b4582
mov ecx, edi
call fcn.004b4230
push edi
mov ebx, eax
call fcn.00492060
add esp, 4
test ebx, ebx
jne 0x4b4582
mov eax, dword [esi]
mov ecx, dword [esi + 4]
imul eax, eax, 0x6c
mov edi, dword [esp + 0x1c]
mov ebp, dword [eax + ecx - 0x68]
push edi
call fcn.00498010
add esp, 4
push eax
push edi
call fcn.00498000
add esp, 4
push eax
push ebp
call fcn.00497fa0
add esp, 0xc
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
call fcn.004b4230
mov ecx, str.BEGIN_
call fcn.004b4230
mov ebx, eax
test ebx, ebx
jne 0x4b4582
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_UNION_ALL_SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX___UNION_ALL_SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__UNION_ALL_SELECT_CREATE_VIEW_vacuum_db.__substr_sql_13_100000000____FROM_sqlite_master_WHERE_typeview
mov edi, esi
call fcn.004b4280
mov ebx, eax
test ebx, ebx
jne 0x4b4582
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_
call fcn.004b4280
mov ebx, eax
test ebx, ebx
jne 0x4b4582
mov ecx, str.SELECT_CREATE_TRIGGER__vacuum_db.__substr_sql__16__1000000__FROM_sqlite_master_WHERE_typetrigger
call fcn.004b4280
mov ebx, eax
test ebx, ebx
jne 0x4b4582
push ebp
call fcn.0049bdb0
add esp, 4
test eax, eax
je 0x4b4582
mov edi, dword [esp + 0x1c]
push 1
push edi
call fcn.00498290
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b4582
lea edx, [esp + 0x1c]
push edx
push 3
push edi
call fcn.0049b1f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b4582
mov eax, dword [esp + 0x1c]
push eax
push 3
push ebp
call fcn.0049b260
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b4582
lea ecx, [esp + 0x1c]
push ecx
push 4
push edi
call fcn.0049b1f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b4582
mov edx, dword [esp + 0x1c]
push edx
push 4
push ebp
call fcn.0049b260
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b4582
push ebp
push edi
call fcn.0049bbe0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b4582
push edi
call fcn.00498340
add esp, 4
mov ebx, eax
pop ebp
test ebx, ebx
mov byte [esi + 0x179], 1
mov ecx, str.DETACH_vacuum_db_
jne 0x4b459c
call fcn.004b4230
mov ebx, eax
jmp 0x4b45a1
call fcn.004b4230
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4b45b8
push edi
call fcn.0049c030
push edi
call fcn.00492060
add esp, 8
push 0
push esi
call fcn.00495880
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret