Function at 0x43cdad
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x540698]
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.0042e53f
cmp byte [edi + 0x14], 0
pop ecx
jne 0x43ce0c
push 0
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.0043ca7f
xor esi, esi
add esp, 0xc
inc esi
jmp 0x43d000
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.00434926
pop ecx
pop ecx
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x43ce3e
push 7
pop esi
jmp 0x43cfff
push eax
push edi
call fcn.0043cd6c
push dword [ebp - 0x154]
mov esi, eax
call fcn.0043c5a1
add esp, 0xc
test esi, esi
jne 0x43cfff
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.0041c714
pop ecx
push eax
push ebx
call fcn.0041c705
pop ecx
push eax
push esi
call fcn.0041d3fb
push str.PRAGMA_vacuum_db.synchronousOFF
push edi
call fcn.0043cd6c
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43cfff
push ebx
call fcn.0041c65f
push eax
push dword [ebp - 0x154]
call fcn.0041d3a3
push str.BEGIN_EXCLUSIVE_
push edi
call fcn.0043cd6c
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43cfff
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.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push edi
call fcn.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
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.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
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.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push edi
call fcn.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
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.0043cd09
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
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.0043cd6c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
xor ebx, ebx
lea eax, [ebp - 0x164]
push eax
movzx eax, byte [ebx + 0x4fe178]
push eax
push dword [ebp - 0x15c]
call fcn.0041c6a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43cfff
movzx eax, byte [ebx + 0x4fe179]
add eax, dword [ebp - 0x164]
push eax
movzx eax, byte [ebx + 0x4fe178]
push eax
push dword [ebp - 0x154]
call fcn.0041d4c6
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43cfff
add ebx, 2
cmp ebx, 8
jb 0x43cf75
push dword [ebp - 0x154]
mov ebx, dword [ebp - 0x15c]
push ebx
call fcn.0041bd8f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cfff
push dword [ebp - 0x154]
call fcn.0041bd1b
mov esi, eax
pop ecx
test esi, esi
jne 0x43cfff
push ebx
call fcn.0041bd1b
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 0x43d02e
push dword [eax + 4]
call fcn.0041bc29
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.0042e085
lea eax, [ebp - 0x150]
mov dword [esp], str._journal
push eax
call fcn.004c8f30
lea eax, [ebp - 0x150]
push eax
call fcn.0042e085
push 0
call fcn.0043c5a1
push 0
push edi
call fcn.0041ff69
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c29c4
leave
ret