Function at 0x63794c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], eax
mov ebx, edx
mov dword [ebp - 0x48], 1
cmp byte [ebx + 0x55], 0
jne 0x637986
mov ecx, str.cannot_VACUUM_from_within_a_transaction
mov edx, ebx
mov eax, edi
call fcn.0064bb68
mov eax, 1
jmp 0x637ddf
cmp dword [ebx + 0xb8], 1
jle 0x6379a7
mov ecx, str.cannot_VACUUM___SQL_statements_in_progress
mov edx, ebx
mov eax, edi
call fcn.0064bb68
mov eax, 1
jmp 0x637ddf
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 8], 0
je 0x6379ec
mov eax, dword [ebp + 8]
call fcn.005e559c
cmp eax, 3
je 0x6379d8
mov ecx, str.non_text_filename
mov edx, ebx
mov eax, edi
call fcn.0064bb68
mov eax, 1
jmp 0x637ddf
mov eax, dword [ebp + 8]
call fcn.005e557c
and dword [ebx + 0x3c], 0xfffffffe
or dword [ebx + 0x3c], 6
mov esi, eax
jmp 0x6379f1
mov esi, 0x67cded
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x14], eax
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x24], ecx
mov al, byte [ebx + 0x5e]
mov byte [ebp - 0x2d], al
or dword [ebx + 0x20], 0x201
or dword [ebx + 0x18], 6
and dword [ebx + 0x20], 0xefffafff
and dword [ebx + 0x24], 0xfffffffe
mov byte [ebx + 0x5e], 0
mov eax, dword [ebp - 4]
shl eax, 4
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.0062f804
call fcn.0063f78c
mov dword [ebp - 0x38], eax
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x40], edx
push esi
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
call fcn.00637864
add esp, 0x10
mov esi, eax
mov ecx, dword [ebp - 0x2c]
test esi, esi
mov dword [ebx + 0x3c], ecx
jne 0x637d6b
mov ecx, dword [ebp - 0x40]
shl ecx, 4
add ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
cmp dword [ebp + 8], 0
je 0x637b1a
mov eax, dword [ebp - 0xc]
call fcn.0062f804
call fcn.0063f9f4
mov ecx, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
cmp dword [ecx], 0
je 0x637afd
lea edx, [ebp - 0x50]
mov eax, ecx
call fcn.0064d370
test eax, eax
jne 0x637ae5
cmp dword [ebp - 0x4c], 0
jne 0x637ae3
cmp dword [ebp - 0x50], 0
jbe 0x637afd
jmp 0x637ae5
jle 0x637afd
mov esi, 1
mov ecx, str.output_file_already_exists
mov edx, ebx
mov eax, edi
call fcn.0064bb68
jmp 0x637d6b
or dword [ebx + 0x18], 8
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
shl edx, 4
mov eax, dword [ebx + 0x20]
and eax, 0x38
movzx edx, byte [ecx + edx + 8]
or eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
call fcn.0062879c
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0x64], 0
je 0x637b47
lea ecx, [ebp - 0x54]
mov eax, ebx
push ecx
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 4]
call fcn.006085dc
cmp dword [ebp - 0x54], 0
je 0x637b47
xor ecx, ecx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x10]
shl eax, 4
mov ecx, dword [edx + eax + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
call fcn.00628630
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00628658
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00628658
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
or edx, 0x20
call fcn.006286b4
mov ecx, str.BEGIN
mov edx, edi
mov eax, ebx
call fcn.006377ac
mov esi, eax
test esi, esi
jne 0x637d6b
cmp dword [ebp + 8], 0
jne 0x637ba6
mov edx, 2
jmp 0x637ba8
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00628f38
mov esi, eax
test esi, esi
jne 0x637d6b
mov eax, dword [ebp - 8]
call fcn.0062f804
call fcn.0063fd50
cmp eax, 5
jne 0x637bd9
cmp dword [ebp + 8], 0
jne 0x637bd9
xor edx, edx
mov dword [ebx + 0x64], edx
push 0
mov eax, dword [ebp - 8]
call fcn.00628788
mov edx, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.006286dc
test eax, eax
jne 0x637c14
cmp dword [ebp - 0x38], 0
jne 0x637c0e
push 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x64]
mov eax, dword [ebp - 0xc]
call fcn.006286dc
test eax, eax
jne 0x637c14
cmp byte [ebx + 0x57], 0
je 0x637c1e
mov esi, 7
jmp 0x637d6b
cmp byte [ebx + 0x5a], 0
jl 0x637c2a
movsx edx, byte [ebx + 0x5a]
jmp 0x637c34
mov eax, dword [ebp - 8]
call fcn.006288ac
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00628848
mov cl, byte [ebp - 0x40]
mov byte [ebx + 0xb0], cl
mov ecx, dword [ebp - 0x44]
push ecx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push edi
push ebx
call fcn.00637864
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x637d6b
mov eax, dword [ebp - 0x44]
push eax
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edi
push ebx
call fcn.00637864
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x637d6b
mov byte [ebx + 0xb0], 0
mov eax, dword [ebp - 0x44]
push eax
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push edi
push ebx
call fcn.00637864
add esp, 0x10
mov esi, eax
and dword [ebx + 0x18], 0xfffffffb
test esi, esi
jne 0x637d6b
mov eax, dword [ebp - 0x44]
push eax
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push edi
push ebx
call fcn.00637864
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x637d6b
xor eax, eax
mov edi, 0x67cde0
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
xor edx, edx
mov dl, byte [edi]
mov eax, dword [ebp - 8]
call fcn.0062f640
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 1]
add ecx, dword [ebp - 0x5c]
xor edx, edx
mov dl, byte [edi]
call fcn.0062f68c
mov esi, eax
test esi, esi
jne 0x637d6b
add dword [ebp - 0x60], 2
add edi, 2
cmp dword [ebp - 0x60], 0xa
jl 0x637cce
cmp dword [ebp + 8], 0
jne 0x637d17
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.006387e8
mov esi, eax
test esi, esi
jne 0x637d6b
mov eax, dword [ebp - 0xc]
call fcn.00629908
mov esi, eax
test esi, esi
jne 0x637d6b
cmp dword [ebp + 8], 0
jne 0x637d41
mov eax, dword [ebp - 0xc]
call fcn.006288ac
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00628848
cmp dword [ebp + 8], 0
jne 0x637d6b
mov eax, dword [ebp - 0xc]
call fcn.0062879c
mov dword [ebp - 0x3c], eax
push 1
mov eax, dword [ebp - 0xc]
call fcn.00628788
mov edx, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.006286dc
mov esi, eax
mov byte [ebx + 0xb0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x24], edx
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x68], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 0x70], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x74], ecx
xor ecx, ecx
mov al, byte [ebp - 0x2d]
or edx, 0xffffffff
mov byte [ebx + 0x5e], al
push 1
mov eax, dword [ebp - 8]
call fcn.006286dc
mov byte [ebx + 0x55], 1
cmp dword [ebp - 0x34], 0
je 0x637dd6
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
call fcn.006285a4
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, ebx
call fcn.005cdfbc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4