Function at 0x4f0930
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x30], 0
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x55], 0
jne 0x4f099d
mov edx, dword [ebx]
test edx, edx
je 0x4f095a
mov ecx, edi
call fcn.0046a220
push 0
push 0x28
mov ecx, edi
call fcn.0046a610
add esp, 8
test eax, eax
je 0x4f098e
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x59d66c]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x59d67c]
movq qword [eax + 0x20], xmm0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
cmp dword [edi + 0xbc], 1
jle 0x4f0a0a
mov edx, dword [ebx]
test edx, edx
je 0x4f09b3
mov ecx, edi
call fcn.0046a220
push 0
push 0x2b
mov ecx, edi
call fcn.0046a610
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4f09fb
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x59d694]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x59d6a4]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x59d6ac]
mov word [ecx + 0x28], ax
mov al, byte [0x59d6ae]
mov byte [ecx + 0x2a], al
mov dword [ebx], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebp, dword [esp + 0x5c]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x4f0ac5
movzx ecx, word [ebp + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x58fee8], 3
je 0x4f0a72
mov edx, dword [ebx]
test edx, edx
je 0x4f0a3c
mov ecx, edi
call fcn.0046a220
push 0
push 0x12
mov ecx, edi
call fcn.0046a610
add esp, 8
test eax, eax
je 0x4f0a63
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x59d6c0]
mov word [eax + 0x10], cx
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x4f0a97
cmp byte [ebp + 0xa], 1
jne 0x4f0a97
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp + 0x10]
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x4f0aca
test cl, 1
je 0x4f0aac
mov ecx, dword [edi + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x4f0aca
mov dl, 1
mov ecx, ebp
call fcn.0048e190
mov ecx, dword [edi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x4f0aca
mov edx, 0x58980c
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x68]
mov ebp, dword [edi + 0x24]
mov bl, byte [edi + 0x5e]
mov dword [esp + 0x38], ecx
and ecx, 0xefffafff
or ecx, 0x201
mov dword [esp + 0x34], eax
mov dword [edi + 0x20], ecx
or eax, 6
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x40], esi
mov esi, dword [edi + 0x6c]
shl ecx, 4
mov dword [esp + 0x44], esi
mov esi, dword [edi + 0x70]
mov dword [esp + 0x3c], ebp
and ebp, 0xfffffffe
mov dword [edi + 0x24], ebp
mov byte [edi + 0x5e], 0
mov ebp, dword [eax + ecx]
mov dword [esp + 0x48], esi
mov esi, dword [edi + 0x74]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + ecx + 4]
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x18], ebp
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x4f0b57
cmp byte [eax + 0x10], 0
mov dword [esp + 0x28], 0
je 0x4f0b5f
mov dword [esp + 0x28], 1
mov eax, dword [edi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push edi
mov dword [esp + 0x3c], eax
call fcn.004f06b0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
test ebx, ebx
jne 0x4f0fe4
mov eax, dword [esp + 0x2c]
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov ebp, dword [eax + 4]
lea eax, [ebp + 4]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x5c], ebx
je 0x4f0c42
mov eax, dword [eax]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x4f0c3c
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4f0bdf
cmp dword [esp + 0x24], eax
jl 0x4f0c3c
jg 0x4f0bdf
cmp dword [esp + 0x20], eax
jbe 0x4f0c3c
mov ebp, dword [esp + 0x14]
mov ebx, 1
mov edx, dword [ebp]
test edx, edx
je 0x4f0bf6
mov ecx, edi
call fcn.0046a220
push 0
push 0x1b
mov ecx, edi
call fcn.0046a610
mov edx, eax
add esp, 8
test edx, edx
je 0x4f0c34
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x59d6ec]
movq qword [edx + 0x10], xmm0
mov cx, word [0x59d6f4]
mov word [edx + 0x18], cx
mov al, byte [0x59d6f6]
mov byte [edx + 0x1a], al
mov dword [ebp], edx
jmp 0x4f0fe4
or dword [edi + 0x18], 8
jmp 0x4f0c46
mov dword [esp + 0x1c], eax
cmp byte [esi + 9], 0
je 0x4f0c5c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4f0c5c
mov ecx, esi
call fcn.0047eed0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx ebx, byte [eax + 0x16]
mov dword [esp + 0x20], ecx
je 0x4f0c84
add dword [esi + 0xc], 0xffffffff
jne 0x4f0c84
mov ecx, esi
call fcn.0047eeb0
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x10]
cmp ebx, ecx
mov edx, dword [esp + 0x58]
cmovg ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, ebp
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.00481ae0
xor edx, edx
mov ecx, esi
call fcn.00481b80
mov edx, eax
mov ecx, ebp
call fcn.00481b80
cmp byte [ebp + 9], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
je 0x4f0cd0
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x4f0cd0
mov ecx, ebp
call fcn.0047eed0
mov eax, dword [ebx]
mov dword [eax + 7], 1
and byte [eax + 0x15], 0xfe
mov byte [eax + 0xb], 0
cmp byte [ebp + 9], 0
je 0x4f0cf4
add dword [ebp + 0xc], 0xffffffff
jne 0x4f0cf4
mov ecx, ebp
call fcn.0047eeb0
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.BEGIN
call fcn.004f04d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4f0fe4
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x5c], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.00482310
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4f0fe4
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4f0d48
cmp dword [esp + 0x5c], ebx
jne 0x4f0d48
mov dword [edi + 0x64], ebx
mov eax, dword [esi + 4]
mov ecx, ebp
mov ebx, dword [esp + 0x20]
push 0
push ebx
mov edx, dword [eax + 0x24]
call fcn.00481d50
add esp, 8
test eax, eax
jne 0x4f0fdf
cmp dword [esp + 0x28], eax
jne 0x4f0d84
mov edx, dword [edi + 0x64]
mov ecx, ebp
push eax
push ebx
call fcn.00481d50
add esp, 8
test eax, eax
jne 0x4f0fdf
cmp byte [edi + 0x57], 0
jne 0x4f0fdf
mov al, byte [edi + 0x5a]
test al, al
js 0x4f0d9a
movsx ebx, al
jmp 0x4f0dd6
mov al, byte [esi + 9]
test al, al
je 0x4f0db4
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4f0db4
mov ecx, esi
call fcn.0047eed0
mov al, byte [esi + 9]
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp byte [ecx + 0x11], bl
je 0x4f0dc5
cmp byte [ecx + 0x12], bl
setne bl
inc ebx
test al, al
je 0x4f0dd6
add dword [esi + 0xc], 0xffffffff
jne 0x4f0dd6
mov ecx, esi
call fcn.0047eeb0
mov edx, ebx
mov ecx, ebp
call fcn.00481e90
push dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [edi + 0xb0], al
push edi
call fcn.004f06b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4f0fe4
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push edi
call fcn.004f06b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4f0fe4
push dword [esp + 0x18]
mov byte [edi + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
push edi
call fcn.004f06b0
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4f0fe4
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push edi
call fcn.004f06b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4f0fe4
mov dword [esp + 0x18], eax
nop word [eax + eax]
mov cl, byte [esi + 9]
movzx ebx, byte [eax + 0x58b384]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
test cl, cl
je 0x4f0eac
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4f0eac
mov ecx, esi
call fcn.0047eed0
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x2c]
cmp ebx, 0xf
jne 0x4f0ebb
mov eax, dword [eax]
mov ebx, dword [eax + 0x6c]
add ebx, dword [esi + 0x14]
jmp 0x4f0ec7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x4f0ed8
add dword [esi + 0xc], 0xffffffff
jne 0x4f0ed8
mov ecx, esi
call fcn.0047eeb0
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 0x58b385]
movzx edx, byte [ecx + 0x58b384]
add eax, ebx
push eax
mov ecx, ebp
call fcn.0048a8e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4f0fe4
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, 0xa
jl 0x4f0e80
cmp dword [esp + 0x5c], ebx
jne 0x4f0f2e
mov edx, ebp
mov ecx, esi
call fcn.0048cb70
mov ebx, eax
test ebx, ebx
jne 0x4f0fe4
cmp byte [ebp + 9], 0
je 0x4f0f44
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x4f0f44
mov ecx, ebp
call fcn.0047eed0
xor edx, edx
mov ecx, ebp
call fcn.004831d0
mov ebx, eax
test ebx, ebx
jne 0x4f0f5e
xor edx, edx
mov ecx, ebp
call fcn.004833c0
mov ebx, eax
cmp byte [ebp + 9], 0
je 0x4f0f71
add dword [ebp + 0xc], 0xffffffff
jne 0x4f0f71
mov ecx, ebp
call fcn.0047eeb0
test ebx, ebx
jne 0x4f0fe4
cmp dword [esp + 0x5c], ebx
jne 0x4f0fe4
mov al, byte [ebp + 9]
test al, al
je 0x4f0f94
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], bl
jne 0x4f0f94
mov ecx, ebp
call fcn.0047eed0
mov al, byte [ebp + 9]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov ecx, dword [ecx]
cmp byte [ecx + 0x11], bl
je 0x4f0fa8
cmp byte [ecx + 0x12], bl
setne bl
inc ebx
test al, al
je 0x4f0fb9
add dword [ebp + 0xc], 0xffffffff
jne 0x4f0fb9
mov ecx, ebp
call fcn.0047eeb0
mov edx, ebx
mov ecx, esi
call fcn.00481e90
mov ecx, dword [esp + 0x1c]
push 1
push dword [esp + 0x24]
mov eax, dword [ecx]
mov ecx, esi
mov edx, dword [eax + 0x24]
call fcn.00481d50
add esp, 8
mov ebx, eax
jmp 0x4f0fe4
mov ebx, 7
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x38]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x74], eax
mov al, byte [esp + 0x13]
push 1
push 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5e], al
call fcn.00481d50
mov ebp, dword [esp + 0x38]
add esp, 8
mov byte [edi + 0x55], 1
test ebp, ebp
je 0x4f1056
mov ecx, dword [ebp + 4]
call fcn.004818e0
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov ecx, edi
call fcn.004b8b00
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x44
ret