Function at 0x491f30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
cmp byte [edi + 0x3f], al
jne 0x491fc2
mov edx, dword [ebx]
test edx, edx
je 0x491f90
cmp dword [edi + 0x208], eax
je 0x491f61
mov ecx, edi
call fcn.0042cdd0
jmp 0x491f90
cmp edx, dword [edi + 0x114]
jb 0x491f87
cmp edx, dword [edi + 0x118]
jae 0x491f87
mov eax, dword [edi + 0x110]
mov dword [edx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], edx
jmp 0x491f90
push edx
call fcn.0042cd60
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.0042d090
mov esi, eax
add esp, 8
test esi, esi
je 0x491fb4
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.004f44c0
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x492033
mov ecx, dword [ebx]
test ecx, ecx
je 0x492013
cmp dword [edi + 0x208], eax
je 0x491fe4
mov edx, ecx
mov ecx, edi
call fcn.0042cdd0
jmp 0x492013
cmp ecx, dword [edi + 0x114]
jb 0x49200a
cmp ecx, dword [edi + 0x118]
jae 0x49200a
mov eax, dword [edi + 0x110]
mov dword [ecx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ecx
jmp 0x492013
push ecx
call fcn.0042cd60
add esp, 4
push 0
push 0x2b
mov ecx, edi
call fcn.0042d090
mov esi, eax
add esp, 8
test esi, esi
je 0x491fb4
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x491fab
mov eax, dword [edi + 0x18]
mov edx, ebx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x24], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x54]
cmp byte [edi + 0x40], 2
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0xb0]
mov dword [edi + 0xb0], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ecx
mov ecx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xf]
mov byte [ebp - 1], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, ecx
mov ecx, edi
push eax
call fcn.00491cc0
mov ecx, dword [edi + 0x14]
add esp, 4
mov ebx, eax
cmp ecx, esi
jle 0x4920b3
mov eax, dword [edi + 0x10]
mov edx, ecx
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov dword [ebp - 0x14], eax
test ebx, ebx
jne 0x492469
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 - 0xc]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00441970
mov esi, dword [ebp - 0x10]
mov cl, byte [esi + 9]
test cl, cl
je 0x4920ea
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x4920ea
mov ecx, esi
call fcn.0043dfb0
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x10], edx
test cl, cl
je 0x492107
add dword [esi + 0xc], 0xffffffff
jne 0x492107
mov ecx, esi
call fcn.0043df70
mov edx, dword [ebp - 8]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.00491cc0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.BEGIN_
call fcn.00491cc0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
lea edx, [eax + 2]
mov ecx, esi
call fcn.004409f0
mov ebx, eax
test ebx, ebx
jne 0x49246c
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x492164
mov dword [edi + 0x48], ebx
mov edx, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x10]
call fcn.004403d0
add esp, 8
test eax, eax
jne 0x492462
cmp byte [ebp - 1], al
jne 0x49219f
mov edx, dword [edi + 0x48]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.004403d0
add esp, 8
test eax, eax
jne 0x492462
cmp byte [edi + 0x41], 0
jne 0x492462
mov al, byte [edi + 0x43]
test al, al
js 0x4921b5
movsx eax, al
jmp 0x4921bc
mov ecx, esi
call fcn.004405e0
mov edx, eax
mov ecx, ebx
call fcn.00440560
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.00491d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00491d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00491d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
or dword [edi + 0x18], 0x8000000
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.00491d70
and dword [edi + 0x18], 0xf7ffffff
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00491d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00491d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
call fcn.00491cc0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov dword [ebp - 8], ebx
nop word [eax + eax]
movzx edx, byte [ebx + 0x537d24]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00447670
movzx eax, byte [ebx + 0x537d25]
add esp, 4
add eax, dword [ebp - 0x1c]
movzx edx, byte [ebx + 0x537d24]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004476d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49246c
mov ebx, dword [ebp - 8]
add ebx, 2
mov dword [ebp - 8], ebx
cmp ebx, 0xa
jl 0x4922a0
cmp byte [esi + 9], al
je 0x4922fe
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x4922fe
mov ecx, esi
call fcn.0043dfb0
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 9], 0
je 0x492318
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x492318
call fcn.0043dfb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x3c]
cmp dword [ebx], 0
je 0x49235f
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f3d00
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
push 0xb
push ebx
mov eax, dword [eax + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
je 0x49235f
test ebx, ebx
jne 0x4923fb
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
push SysReAllocString
mov dword [ebp - 0x60], 0
movlpd qword [ebp - 0x58], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], 1
call fcn.00448da0
lea eax, [ebp - 0x60]
push eax
call fcn.00449490
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4923c2
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x4923fb
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x4923fb
cmp byte [ecx + 0xc], 0
jne 0x4923fb
inc dword [ecx + 0x64]
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x4923ee
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x4923e0
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.00435550
mov eax, dword [ebp - 0xc]
cmp byte [eax + 9], 0
je 0x492411
add dword [eax + 0xc], 0xffffffff
jne 0x492411
mov ecx, eax
call fcn.0043df70
cmp byte [esi + 9], 0
je 0x492424
add dword [esi + 0xc], 0xffffffff
jne 0x492424
mov ecx, esi
call fcn.0043df70
test ebx, ebx
jne 0x49246c
mov ecx, dword [ebp - 0xc]
call fcn.00441970
mov ebx, eax
test ebx, ebx
jne 0x49246c
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.004405e0
mov edx, eax
mov ecx, esi
call fcn.00440560
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
call fcn.004403d0
add esp, 8
mov ebx, eax
jmp 0x49246c
mov ebx, 7
jmp 0x49246c
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x30]
push 1
push 0xffffffffffffffff
mov dword [edi + 0xb0], eax
call fcn.004403d0
mov esi, dword [ebp - 0x14]
add esp, 8
mov byte [edi + 0x3f], 1
test esi, esi
je 0x4924b9
mov ecx, dword [esi + 4]
call fcn.00440080
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.00469380
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret