Function at 0x43dc30
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
or eax, 0x2800
cmp byte [ebp + 0x1c], 0
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [ebp + 0xc], eax
jne 0x43dc76
mov eax, dword [esp + 0x28]
push 0
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.00403800
add esp, 0xc
mov esi, 1
jmp 0x43dead
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 4]
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, ebp
call fcn.0043d9d0
mov esi, eax
test esi, esi
jne 0x43dead
mov eax, dword [ebp + 4]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
mov edi, dword [eax + edx*8 - 0x14]
lea eax, [eax + edx*8]
lea ecx, [eax - 0x18]
mov eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edi
call fcn.0040bd10
mov eax, dword [ebx + 4]
movzx edx, word [eax + 0x1e]
movzx esi, word [eax + 0x1c]
sub esi, edx
cmp byte [ebx + 9], 0
mov dword [esp + 0x1c], esi
je 0x43dce4
or ecx, 0xffffffff
add dword [ebx + 0xc], ecx
jne 0x43dce4
mov eax, dword [eax + 0x40]
add dword [eax + 0x1c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebx + 0xa], 0
mov eax, dword [ebx + 4]
movzx eax, word [eax + 0x1c]
push eax
mov eax, esi
call fcn.0040d710
add esp, 4
test eax, eax
jne 0x43dea8
mov ecx, dword [ebp + 0x24]
push ecx
mov eax, esi
call fcn.0040d710
add esp, 4
test eax, eax
jne 0x43dea8
cmp byte [ebp + 0x1e], al
jne 0x43dea8
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebp
call fcn.0043d9d0
mov esi, eax
test esi, esi
jne 0x43dead
mov al, byte [ebp + 0x21]
test al, al
jl 0x43dd3f
movsx eax, al
jmp 0x43dd46
mov esi, ebx
call fcn.0040d890
push eax
mov esi, edi
call fcn.0040d830
add esp, 4
mov eax, str.BEGIN_EXCLUSIVE_
mov ecx, ebp
call fcn.0043d9d0
mov esi, eax
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
push ebp
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0043da60
mov esi, eax
add esp, 4
test esi, esi
jne 0x43dead
mov eax, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov ecx, ebp
call fcn.0043d9d0
mov esi, eax
test esi, esi
jne 0x43dead
xor edi, edi
nop
movzx eax, byte [edi + 0x48fe30]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, ebx
call fcn.00413020
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dead
movzx ecx, byte [edi + 0x48fe31]
add ecx, dword [esp + 0x18]
movzx edx, byte [edi + 0x48fe30]
mov esi, dword [esp + 0x2c]
push ecx
push edx
call fcn.00413120
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dead
add edi, 2
cmp edi, 8
jb 0x43de10
mov esi, dword [esp + 0x2c]
mov edi, ebx
call fcn.00414440
mov esi, eax
test esi, esi
jne 0x43dead
mov edi, dword [esp + 0x2c]
mov eax, edi
call fcn.0040e800
mov esi, eax
test esi, esi
jne 0x43dead
mov eax, ebx
call fcn.0040e800
mov esi, eax
test esi, esi
jne 0x43dead
mov eax, dword [edi + 4]
movzx eax, word [eax + 0x1c]
push eax
mov eax, dword [esp + 0x20]
mov edi, ebx
call fcn.0040d710
add esp, 4
mov esi, eax
jmp 0x43dead
mov esi, 7
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0x1c], 1
je 0x43ded4
mov edi, dword [eax + 4]
call fcn.0040d520
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
push 0
push ebp
call fcn.00426200
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret