Function at 0x436f90
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
or ah, 0x28
mov dword [ebp + 8], eax
mov al, byte [ebp + 0x14]
test al, al
mov dword [esp + 0x14], ecx
jne 0x436fd6
mov eax, dword [esp + 0x20]
push ecx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.0040dad0
add esp, 0xc
mov esi, 1
jmp 0x43723c
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x24], eax
call fcn.004174a0
mov esi, eax
add esp, 4
cmp byte [esi], 0
jne 0x436ffa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea edx, [ebx + 0x64]
push edx
call fcn.0040d9d0
mov edx, eax
add esp, 8
test edx, edx
mov dword [esp + 0x10], edx
jne 0x43702a
mov esi, 7
jmp 0x43723c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + edx + 1]
push esi
mov byte [ebx + edx], 0x2d
call fcn.004372a0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041c370
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x43704d
push edx
push str.ATTACH__q_AS_vacuum_db_
call fcn.004225b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x43708a
mov esi, 7
jmp 0x43723c
push edi
push ebp
call fcn.004372e0
push edi
mov esi, eax
call fcn.0040d9b0
add esp, 0xc
test esi, esi
jne 0x43723c
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax*2]
push ebx
mov edi, dword [ecx + eax*8 - 0x14]
lea eax, [ecx + eax*8]
mov dword [esp + 0x28], edi
lea edx, [eax - 0x18]
mov dword [esp + 0x18], edx
call fcn.00411d40
add esp, 4
push eax
push ebx
call fcn.00411d30
add esp, 4
push eax
push edi
call fcn.00411cc0
push str.PRAGMA_vacuum_db.synchronousOFF
push ebp
call fcn.004372e0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43723c
push ebx
call fcn.00411d90
push eax
push edi
call fcn.00411d60
push str.BEGIN_EXCLUSIVE_
push ebp
call fcn.004372e0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43723c
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
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 ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push ebp
call fcn.00437340
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
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 ebp
call fcn.004372e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
xor edi, edi
xor ecx, ecx
lea eax, [esp + 0x20]
mov cl, byte [edi + 0x449ed8]
push eax
push ecx
push ebx
call fcn.00416870
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43723c
mov ecx, dword [esp + 0x20]
mov al, byte [edi + 0x449ed8]
xor edx, edx
mov dl, byte [edi + 0x449ed9]
add edx, ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.004169e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43723c
add edi, 2
cmp edi, 8
jb 0x4371c0
mov edi, dword [esp + 0x24]
push edi
push ebx
call fcn.00417500
mov esi, eax
add esp, 8
test esi, esi
jne 0x43723c
push edi
call fcn.00412270
mov esi, eax
add esp, 4
test esi, esi
jne 0x43723c
push ebx
call fcn.00412270
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov dword [ebp + 8], edx
cmp edi, ebx
mov byte [ebp + 0x14], 1
je 0x437263
mov eax, dword [edi + 4]
push eax
call fcn.00411b90
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x43727a
push edi
call fcn.0041c210
push edi
call fcn.0040d9b0
add esp, 8
push ebx
call fcn.0040d9b0
push ebx
push ebp
call fcn.00418be0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret