Function at 0x439aed
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x531698]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [edi + 8]
mov dword [ebp - 0x160], eax
or eax, 0x2800
mov dword [edi + 8], eax
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0x158], edx
call fcn.0042b2ee
cmp byte [edi + 0x14], 0
pop ecx
jne 0x439b4c
push 0
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.004397bf
xor esi, esi
add esp, 0xc
inc esi
jmp 0x439d40
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x150]
push eax
push str.ATTACH__q_AS_vacuum_db_
mov dword [ebp - 0x15c], ebx
call fcn.004316ca
pop ecx
pop ecx
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x439b7e
push 7
pop esi
jmp 0x439d3f
push eax
push edi
call fcn.00439aac
push dword [ebp - 0x154]
mov esi, eax
call fcn.004392e1
add esp, 0xc
test esi, esi
jne 0x439d3f
mov ecx, dword [edi]
mov eax, dword [edi + 4]
imul ecx, ecx, 0x18
mov esi, dword [ecx + eax - 0x14]
lea edx, [eax - 0x18]
add edx, ecx
push ebx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], esi
call fcn.0041944c
pop ecx
push eax
push ebx
call fcn.0041943d
pop ecx
push eax
push esi
call fcn.0041a133
push str.PRAGMA_vacuum_db.synchronousOFF
push edi
call fcn.00439aac
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x439d3f
push ebx
call fcn.00419397
push eax
push dword [ebp - 0x154]
call fcn.0041a0db
push str.BEGIN_EXCLUSIVE_
push edi
call fcn.00439aac
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x439d3f
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push 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
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push edi
call fcn.00439a49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push 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_
push edi
call fcn.00439aac
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
xor ebx, ebx
lea eax, [ebp - 0x164]
push eax
movzx eax, byte [ebx + 0x4ef028]
push eax
push dword [ebp - 0x15c]
call fcn.004193df
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x439d3f
movzx eax, byte [ebx + 0x4ef029]
add eax, dword [ebp - 0x164]
push eax
movzx eax, byte [ebx + 0x4ef028]
push eax
push dword [ebp - 0x154]
call fcn.0041a1fe
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x439d3f
add ebx, 2
cmp ebx, 8
jb 0x439cb5
push dword [ebp - 0x154]
mov ebx, dword [ebp - 0x15c]
push ebx
call fcn.00418ac7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d3f
push dword [ebp - 0x154]
call fcn.00418a53
mov esi, eax
pop ecx
test esi, esi
jne 0x439d3f
push ebx
call fcn.00418a53
pop ecx
mov esi, eax
pop ebx
mov eax, dword [ebp - 0x160]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x158]
mov byte [edi + 0x14], 1
test eax, eax
je 0x439d6e
push dword [eax + 4]
call fcn.00418961
mov eax, dword [ebp - 0x158]
pop ecx
and dword [eax + 4], 0
and dword [eax + 0x14], 0
lea eax, [ebp - 0x150]
push eax
call fcn.0042ae31
lea eax, [ebp - 0x150]
mov dword [esp], str._journal
push eax
call fcn.004c1ca0
lea eax, [ebp - 0x150]
push eax
call fcn.0042ae31
push 0
call fcn.004392e1
push 0
push edi
call fcn.0041cca1
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004bb744
leave
ret