Function at 0x44da80
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
or eax, 0x2800
mov dword [ebp + 8], eax
mov al, byte [ebp + 0x14]
test al, al
push esi
push edi
mov dword [esp + 0x18], 0
jne 0x44dac7
mov eax, dword [esp + 0x28]
push 0
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.00418360
add esp, 0xc
mov esi, 1
jmp 0x44dcbc
mov ecx, dword [ebp + 4]
mov ebx, dword [ecx + 4]
mov ecx, str.ATTACH__AS_vacuum_db_
mov eax, ebp
mov dword [esp + 0x10], ebx
call fcn.0044d8c0
mov esi, eax
test esi, esi
jne 0x44dcbc
mov eax, dword [ebp]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
mov edi, dword [eax + edx*8 - 0x14]
lea eax, [eax + edx*8]
lea ecx, [eax - 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 0x18]
movzx ecx, word [ecx + 0x1a]
mov edx, eax
sub edx, ecx
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0041f400
mov eax, dword [0x4696e8]
test eax, eax
je 0x44db42
mov eax, dword [0x4696f0]
test eax, eax
jle 0x44db42
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4696cc], eax
jne 0x44db42
mov esi, 7
jmp 0x44dcbc
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebp
call fcn.0044d8c0
mov esi, eax
test esi, esi
jne 0x44dcbc
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x12]
xor edx, edx
test cl, cl
je 0x44db6d
mov cl, byte [eax + 0x13]
test cl, cl
setne dl
inc edx
mov eax, edi
call fcn.00412220
mov ecx, str.BEGIN_EXCLUSIVE_
mov eax, ebp
call fcn.0044d8c0
mov esi, eax
test esi, esi
jne 0x44dcbc
push ebp
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
push ebp
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
push ebp
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
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.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
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.0044d940
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
mov ecx, 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 eax, ebp
call fcn.0044d8c0
mov esi, eax
test esi, esi
jne 0x44dcbc
xor edi, edi
mov dword [esp + 0x2c], edi
jmp 0x44dc40
mov edi, dword [esp + 0x2c]
lea esp, [esp]
movzx esi, byte [edi + 0x45d328]
lea edx, [esp + 0x1c]
push edx
mov eax, ebx
call fcn.00432150
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
movzx ebx, byte [edi + 0x45d329]
mov ecx, dword [esp + 0x1c]
movzx edi, byte [edi + 0x45d328]
mov eax, dword [esp + 0x14]
add ebx, ecx
call fcn.004321f0
mov esi, eax
test esi, esi
jne 0x44dcbc
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
add eax, 2
cmp eax, 8
mov dword [esp + 0x2c], eax
jb 0x44dc38
mov edi, dword [esp + 0x14]
push ebx
mov eax, edi
call fcn.0043ce30
mov esi, eax
add esp, 4
test esi, esi
jne 0x44dcbc
call fcn.0043a430
mov esi, eax
test esi, esi
jne 0x44dcbc
mov edi, ebx
call fcn.0043a430
mov esi, eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp + 8], eax
mov byte [ebp + 0x14], 1
je 0x44dce3
mov ecx, dword [edi + 4]
push ecx
call fcn.0042eb40
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
push ebx
mov ebx, ebp
call fcn.0042ab10
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret