Function at 0x442535
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
or dword [eax + 0xc], 0x2800
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x1c], 0
jne 0x442597
push str.cannot_VACUUM_from_within_a_transaction
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404ec6
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x44287b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 8], edx
push dword [ebp - 8]
call fcn.004174ef
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.0040ee2d
pop ecx
cmp dword [eax], 0
sete cl
and ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], str.ATTACH__AS_vacuum_db_
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.00442444
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
dec edx
mov ecx, edx
shl ecx, 3
lea ecx, [ecx + ecx*2]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*2]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [edx + ecx*8 - 0x14]
mov dword [ebp - 0x10], ecx
push dword [ebp - 8]
call fcn.00411276
pop ecx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.00411267
pop ecx
push eax
push dword [ebp - 0x10]
call fcn.004111b0
add esp, 0xc
test eax, eax
jne 0x442663
cmp dword [ebp - 0x28], 0
jne 0x44265a
push dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
push dword [eax + 0x24]
push dword [ebp - 0x10]
call fcn.004111b0
add esp, 0xc
test eax, eax
jne 0x442663
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x1e], 0
je 0x44266f
mov dword [ebp - 4], 7
jmp 0x44287b
push str.PRAGMA_vacuum_db.synchronousOFF
push dword [ebp + 0xc]
call fcn.00442444
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44268d
jmp 0x44287b
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0x21], 0
jl 0x44269f
mov eax, dword [ebp + 0xc]
movsx edx, byte [eax + 0x21]
jmp 0x4426aa
push dword [ebp - 8]
call fcn.00411344
pop ecx
mov edx, eax
push edx
push dword [ebp - 0x10]
call fcn.004112dd
add esp, 8
push str.BEGIN_EXCLUSIVE_
push dword [ebp + 0xc]
call fcn.00442444
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
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 dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 0xc]
call fcn.00442496
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
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 dword [ebp + 0xc]
call fcn.00442444
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
cmp dword [ebp - 4], 0
jne 0x44285a
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x44280a
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dl, byte [eax + 0x78a72c]
push edx
push dword [ebp - 8]
call fcn.00417320
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov al, byte [ecx + 0x78a72d]
add eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov cl, byte [edx + 0x78a72c]
push ecx
push dword [ebp - 0x10]
call fcn.00417407
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
add dword [ebp - 0x34], 2
cmp dword [ebp - 0x34], 8
jb 0x4427af
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004186bb
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push dword [ebp - 0x10]
call fcn.00412339
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push dword [ebp - 0x10]
call fcn.00411344
pop ecx
push eax
push dword [ebp - 8]
call fcn.004112dd
add esp, 8
push dword [ebp - 8]
call fcn.00412339
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44287b
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call fcn.00411267
pop ecx
push eax
push dword [ebp - 8]
call fcn.004111b0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x48], edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x1c], 1
cmp dword [ebp - 0x24], 0
je 0x4428bf
mov edx, dword [ebp - 0x24]
push dword [edx + 4]
call fcn.00411006
pop ecx
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + 0x14], ecx
push 0
push dword [ebp + 0xc]
call fcn.0042caa7
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret