Function at 0x629ca0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x28], 0
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x4f], 0
jne 0x629d11
mov edx, dword [ebx]
test edx, edx
je 0x629ccf
mov ecx, edi
call fcn.005b5a40
push 0
push 0x28
mov ecx, edi
call fcn.005b5d30
add esp, 8
test eax, eax
je 0x629d03
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x804acc]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x804adc]
movq qword [eax + 0x20], xmm0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xb0], 1
jle 0x629d7d
mov edx, dword [ebx]
test edx, edx
je 0x629d27
mov ecx, edi
call fcn.005b5a40
push 0
push 0x2b
mov ecx, edi
call fcn.005b5d30
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x629d6f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x804aa0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x804ab0]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x804ab8]
mov word [ecx + 0x28], ax
mov al, byte [0x804aba]
mov byte [ecx + 0x2a], al
mov dword [ebx], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x18], esi
test edx, edx
je 0x629e35
movzx ecx, word [edx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x795700], 3
je 0x629de3
mov edx, dword [ebx]
test edx, edx
je 0x629dae
mov ecx, edi
call fcn.005b5a40
push 0
push 0x12
mov ecx, edi
call fcn.005b5d30
add esp, 8
test eax, eax
je 0x629dd5
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x804d0c]
mov word [eax + 0x10], cx
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x629e07
cmp byte [edx + 0xa], 1
jne 0x629e07
mov edx, dword [edx + 0x10]
mov eax, esi
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x629e3a
test cl, 1
je 0x629e1b
mov eax, esi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x629e3a
mov ecx, dword [ebp + 0xc]
mov dl, 1
call fcn.005d5e20
mov edx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x629e3a
mov edx, 0x798f50
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x24]
mov ebx, dword [edi + 0x64]
mov dword [esp + 0x30], ecx
and ecx, 0xefffafff
mov dword [esp + 0x2c], eax
or ecx, 0x201
mov dword [edi + 0x20], ecx
or eax, 6
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
shl ecx, 4
mov dword [esp + 0x38], ebx
mov ebx, dword [edi + 0x68]
mov dword [esp + 0x34], esi
and esi, 0xfffffffe
mov dword [edi + 0x24], esi
mov dword [esp + 0x3c], ebx
mov bl, byte [edi + 0x58]
mov byte [edi + 0x58], 0
mov esi, dword [eax + ecx]
mov dword [esp + 0x20], esi
mov esi, dword [eax + ecx + 4]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov byte [esp + 0x17], bl
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
push ebx
push edi
mov eax, dword [eax]
mov dword [ebp + 8], ecx
mov al, byte [eax + 0xc]
mov byte [esp + 0x1e], al
mov eax, dword [edi + 0x14]
mov dword [esp + 0x34], eax
call fcn.00629ab0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
mov dword [edi + 0x3c], eax
test ebx, ebx
jne 0x62a393
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x28], eax
mov ebx, dword [eax + 4]
je 0x629f87
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x629f83
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x629f24
cmp dword [esp + 0x1c], eax
jl 0x629f83
jg 0x629f24
cmp dword [esp + 0x18], eax
jbe 0x629f83
mov eax, dword [esp + 0x14]
mov ebx, 1
mov edx, dword [eax]
test edx, edx
je 0x629f3a
mov ecx, edi
call fcn.005b5a40
push 0
push 0x1b
mov ecx, edi
call fcn.005b5d30
mov edx, eax
add esp, 8
test edx, edx
je 0x629f78
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x804d8c]
movq qword [edx + 0x10], xmm0
mov cx, word [0x804d94]
mov word [edx + 0x18], cx
mov al, byte [0x804d96]
mov byte [edx + 0x1a], al
mov eax, dword [esp + 0x14]
mov dword [eax], edx
jmp 0x62a393
or dword [edi + 0x18], 8
mov cl, byte [esi + 9]
test cl, cl
je 0x629fa1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x629fa1
mov ecx, esi
call fcn.005c8270
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
test cl, cl
je 0x629fcf
add dword [esi + 0xc], 0xffffffff
jne 0x629fcf
mov ecx, esi
call fcn.005c8250
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, ebx
cmp edx, eax
cmovg eax, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.005ca6d0
xor edx, edx
mov ecx, esi
call fcn.005ca750
mov edx, eax
mov ecx, ebx
call fcn.005ca750
cmp byte [ebx + 9], 0
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
je 0x62a023
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x62a023
mov ecx, ebx
call fcn.005c8270
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor edx, edx
mov dword [ecx + 7], 1
cmp byte [ecx + 8], dl
mov byte [ecx + 0xb], 0
movzx eax, byte [ecx + 0xb]
cmovne eax, edx
and byte [ecx + 0x14], 0xfe
mov byte [ecx + 0xb], al
cmp byte [ebx + 9], dl
je 0x62a055
add dword [ebx + 0xc], 0xffffffff
jne 0x62a055
mov ecx, ebx
call fcn.005c8250
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.BEGIN
call fcn.006299d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
xor edx, edx
mov ecx, esi
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.005caec0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x62a0ad
mov dword [edi + 0x5c], 0
mov edx, dword [esi + 4]
mov edx, dword [edx + 0x24]
mov ecx, ebx
push 0
push dword [esp + 0x1c]
call fcn.005ca8c0
add esp, 8
test eax, eax
jne 0x62a388
cmp byte [esp + 0xe], al
jne 0x62a0e8
mov edx, dword [edi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x1c]
call fcn.005ca8c0
add esp, 8
test eax, eax
jne 0x62a388
cmp byte [edi + 0x51], 0
jne 0x62a388
mov al, byte [edi + 0x54]
test al, al
js 0x62a0fe
movsx edx, al
jmp 0x62a14d
mov cl, byte [esi + 9]
test cl, cl
je 0x62a118
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x62a118
mov ecx, esi
call fcn.005c8270
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x62a12b
mov dword [esp + 0x10], 0
jmp 0x62a138
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x10], eax
test cl, cl
je 0x62a149
add dword [esi + 0xc], 0xffffffff
jne 0x62a149
mov ecx, esi
call fcn.005c8250
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.005ca9e0
push dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [edi + 0xa4], al
push edi
call fcn.00629ab0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x1c]
push edi
call fcn.00629ab0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
push dword [esp + 0x20]
mov byte [edi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
push edi
call fcn.00629ab0
and dword [edi + 0x18], 0xfffffffb
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
push dword [esp + 0x20]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push edi
call fcn.00629ab0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
mov dword [esp + 0x20], eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [eax + 0x790cbc]
mov dl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
test dl, dl
je 0x62a234
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x62a234
mov ecx, esi
call fcn.005c8270
mov dl, byte [esi + 9]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp ecx, 0xf
jne 0x62a247
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
add ecx, dword [eax + 0x64]
mov dword [esp + 0x24], ecx
jmp 0x62a257
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x24]
bswap eax
mov dword [esp + 0x24], eax
test dl, dl
je 0x62a268
add dword [esi + 0xc], 0xffffffff
jne 0x62a268
mov ecx, esi
call fcn.005c8250
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 0x790cbd]
add eax, dword [esp + 0x24]
movzx edx, byte [ecx + 0x790cbc]
mov ecx, ebx
push eax
call fcn.005d2930
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x20], eax
cmp eax, 0xa
jl 0x62a200
cmp dword [ebp + 0xc], 0
jne 0x62a2c4
mov edx, ebx
mov ecx, esi
call fcn.005d4ae0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a38f
cmp byte [ebx + 9], 0
je 0x62a2da
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x62a2da
mov ecx, ebx
call fcn.005c8270
xor edx, edx
mov ecx, ebx
call fcn.005cbce0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x62a2f8
xor edx, edx
mov ecx, ebx
call fcn.005cbe80
mov dword [esp + 0x10], eax
cmp byte [ebx + 9], 0
je 0x62a30b
add dword [ebx + 0xc], 0xffffffff
jne 0x62a30b
mov ecx, ebx
call fcn.005c8250
cmp dword [esp + 0x10], 0
jne 0x62a38f
cmp dword [ebp + 0xc], 0
jne 0x62a38f
mov cl, byte [ebx + 9]
test cl, cl
je 0x62a332
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x62a332
mov ecx, ebx
call fcn.005c8270
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x62a345
mov dword [esp + 0x24], 0
jmp 0x62a352
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x24], eax
test cl, cl
je 0x62a363
add dword [ebx + 0xc], 0xffffffff
jne 0x62a363
mov ecx, ebx
call fcn.005c8250
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.005ca9e0
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
call fcn.005ca8c0
add esp, 8
mov ebx, eax
jmp 0x62a393
mov ebx, 7
jmp 0x62a393
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x30]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x68], eax
mov al, byte [esp + 0xf]
push 1
push 0
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.005ca8c0
mov esi, dword [esp + 0x30]
add esp, 8
mov byte [edi + 0x4f], 1
test esi, esi
je 0x62a3f7
mov ecx, dword [esi + 4]
call fcn.005ca550
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.005fb300
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret