Function at 0x43cb96
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x34], 0
push edi
jne 0x43cbc3
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push ebx
call fcn.00414cd2
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x43ced5
cmp dword [ebx + 0x80], 1
jle 0x43cbd3
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x43cbb0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x94]
and dword [ebx + 0x94], 0
cmp byte [ebx + 0x35], 2
mov edi, dword [eax + 4]
mov eax, dword [edi + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x43cc2a
mov eax, str.ATTACH__AS_vacuum_db_
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, ebx
call fcn.0043cac9
mov esi, eax
mov eax, dword [ebx + 0x14]
pop ecx
cmp eax, dword [ebp - 0xc]
jle 0x43cc4f
mov edx, dword [ebx + 0x10]
mov ecx, eax
add ecx, ecx
lea ecx, [edx + ecx*8 - 0x10]
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0x43ce85
mov ecx, dword [ebx + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 4], eax
call fcn.00429891
mov eax, edi
call fcn.00404d3a
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov esi, edi
mov dword [ebp - 0xc], ecx
call fcn.00404dc2
mov eax, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov esi, ebx
call fcn.0043cac9
mov esi, eax
pop ecx
test esi, esi
jne 0x43ce85
mov eax, dword [ebp + 8]
push str.BEGIN_
mov esi, ebx
call fcn.0043cac9
mov esi, eax
pop ecx
test esi, esi
jne 0x43ce85
push 2
call fcn.004292f8
mov esi, eax
pop ecx
test esi, esi
jne 0x43ce85
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x43ccd6
and dword [ebx + 0x3c], esi
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
xor esi, esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040b2c0
add esp, 0xc
test eax, eax
jne 0x43ced9
cmp dword [ebp - 8], esi
jne 0x43cd14
mov eax, dword [ebx + 0x3c]
push esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040b2c0
add esp, 0xc
test eax, eax
jne 0x43ced9
cmp byte [ebx + 0x36], 0
jne 0x43ced9
mov al, byte [ebx + 0x38]
test al, al
js 0x43cd2a
movsx eax, al
jmp 0x43cd31
mov eax, edi
call fcn.0040536c
push eax
mov eax, dword [ebp - 4]
call fcn.00405320
mov dword [esp], str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 8]
push ebx
call fcn.0043cb22
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43ce85
mov eax, dword [ebp + 8]
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov esi, ebx
call fcn.0043cac9
mov esi, eax
pop ecx
test esi, esi
jne 0x43ce85
mov dword [ebp - 8], esi
jmp 0x43ce00
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [esi + 0x4ac5e0]
push eax
mov eax, edi
call fcn.0040556b
movzx eax, byte [esi + 0x4ac5e1]
add eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
push eax
movzx eax, byte [esi + 0x4ac5e0]
push eax
call fcn.0041b035
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x43ce82
add dword [ebp - 8], 2
cmp dword [ebp - 8], 8
jl 0x43cdfd
push edi
mov eax, ebx
call fcn.0042b2b6
mov esi, eax
pop ecx
test esi, esi
jne 0x43ce82
mov eax, ebx
call fcn.00429891
mov esi, eax
test esi, esi
jne 0x43ce82
mov eax, ebx
call fcn.0040536c
push eax
mov eax, edi
call fcn.00405320
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
push 1
push dword [ebp - 0xc]
push edi
call fcn.0040b2c0
add esp, 0x10
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x94], eax
push 1
or eax, 0xffffffff
push eax
push edi
call fcn.0040b2c0
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebx + 0x34], 1
test edi, edi
je 0x43cecb
push dword [edi + 4]
call fcn.0042c185
and dword [edi + 4], 0
and dword [edi + 0xc], 0
pop ecx
mov eax, ebx
call fcn.00417686
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
push 7
pop esi
jmp 0x43ce85