Function at 0x4703c0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
cmp byte [ebx + 0x51], 0
mov dword [esp + 0x2c], 0
jne 0x47041d
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
test eax, eax
je 0x4703ee
push eax
push ebx
call fcn.00455ea0
add esp, 8
push 0
push 0x28
push ebx
call fcn.00455fb0
add esp, 0xc
test eax, eax
je 0x47040d
mov ecx, 0xa
mov esi, str.cannot_VACUUM_from_within_a_transaction
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp], eax
mov eax, 1
pop ebp
pop ebx
add esp, 0x30
ret
cmp dword [ebx + 0xb4], 1
jle 0x47046d
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp]
test eax, eax
je 0x47043b
push eax
push ebx
call fcn.00455ea0
add esp, 8
push 0
push 0x2b
push ebx
call fcn.00455fb0
add esp, 0xc
test eax, eax
je 0x47045d
mov ecx, 0xa
mov esi, str.cannot_VACUUM___SQL_statements_in_progress
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebp], eax
mov eax, 1
pop ebp
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x50]
mov edi, dword [ebx + 0x3c]
test edx, edx
je 0x470543
movzx ecx, word [edx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x4cf3f0], 3
je 0x4704f0
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
test eax, eax
je 0x4704a2
push eax
push ebx
call fcn.00455ea0
add esp, 8
push 0
push 0x12
push ebx
call fcn.00455fb0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4704e1
mov ecx, dword [str.non_text_filename]
mov dword [edx], ecx
mov ecx, dword [0x4d5ae4]
mov dword [edx + 4], ecx
mov ecx, dword [0x4d5ae8]
mov dword [edx + 8], ecx
mov eax, dword [0x4d5aec]
mov dword [edx + 0xc], eax
mov ax, word [0x4d5af0]
mov word [edx + 0x10], ax
pop edi
mov dword [esi], edx
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x470514
cmp byte [edx + 0xa], 1
jne 0x470514
mov edx, dword [edx + 0x10]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x470548
test cl, 1
je 0x470528
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x470548
push 1
push edx
call fcn.00494ad0
mov edx, eax
add esp, 8
mov eax, dword [ebx + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x470548
mov edx, 0x4c93ac
mov ecx, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x24]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x68]
mov dword [esp + 0x28], ecx
mov cl, byte [ebx + 0x5a]
mov dword [esp + 0x30], eax
or eax, 6
mov dword [esp + 0x34], ebp
and ebp, 0xfffffffe
mov dword [ebx + 0x24], ebp
mov ebp, dword [esp + 0x4c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x28]
and ecx, 0xefffafff
shl ebp, 4
mov byte [ebx + 0x5a], 0
or ecx, 0x201
mov dword [ebx + 0x20], ecx
mov dword [esp + 0x4c], ebp
mov ecx, dword [eax + ebp]
mov ebp, dword [eax + ebp + 4]
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [esp + 0x4c]
mov eax, dword [ebp + 4]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + 0x6c]
push ebx
mov eax, dword [eax]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], ecx
mov al, byte [eax + 0xc]
mov byte [esp + 0x58], al
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x2c], eax
call fcn.0042e0f0
mov esi, eax
mov dword [ebx + 0x3c], edi
add esp, 0x10
test esi, esi
jne 0x4708e6
mov eax, dword [esp + 0x1c]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + 4]
mov dword [esp + 0x18], edi
cmp dword [esp + 0x50], esi
je 0x47068a
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x470686
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x470636
cmp dword [esp + 0x24], eax
jl 0x470686
jg 0x470636
cmp dword [esp + 0x20], eax
jbe 0x470686
mov eax, dword [esp + 0x44]
mov esi, 1
mov dword [esp + 0x48], esi
mov eax, dword [eax]
test eax, eax
je 0x470653
push eax
push ebx
call fcn.00455ea0
add esp, 8
push 0
push 0x1b
push ebx
call fcn.00455fb0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x47067b
mov ecx, 6
mov esi, str.output_file_already_exists
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [eax], edx
jmp 0x4708e6
or dword [ebx + 0x18], 8
push ebp
call fcn.0044f470
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + edx + 0xc]
push dword [ecx + 0x50]
push edi
call fcn.00451400
push 0
push ebp
call fcn.00451640
push eax
push edi
call fcn.00451640
push 0x21
push edi
call fcn.00451560
push str.BEGIN
push dword [esp + 0x6c]
push ebx
call fcn.0042df10
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4708e6
cmp dword [esp + 0x50], eax
mov ecx, 2
push eax
cmove eax, ecx
push eax
push ebp
call fcn.0044e0f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4708e6
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x47070d
mov dword [ebx + 0x60], esi
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x20]
push 0
push esi
push dword [ecx + 0x24]
push edi
call fcn.00451480
add esp, 0x10
test eax, eax
jne 0x4708e1
cmp byte [esp + 0x48], al
jne 0x470744
push eax
push esi
push dword [ebx + 0x60]
push edi
call fcn.00451480
add esp, 0x10
test eax, eax
jne 0x4708e1
cmp byte [ebx + 0x53], 0
jne 0x4708e1
mov al, byte [ebx + 0x56]
test al, al
js 0x47075a
movsx eax, al
jmp 0x470763
push ebp
call fcn.0044f3c0
add esp, 4
push eax
push edi
call fcn.00451380
push dword [esp + 0x1c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push edi
push ebx
mov byte [ebx + 0xa8], al
call fcn.0042e0f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4708e6
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edi
push ebx
call fcn.0042e0f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4708e6
push dword [esp + 0x14]
mov byte [ebx + 0xa8], 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 edi
push ebx
call fcn.0042e0f0
and dword [ebx + 0x18], 0xfffffffb
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4708e6
push dword [esp + 0x14]
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.0042e0f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4708e6
xor edi, edi
jmp 0x470800
mov cl, byte [ebp + 9]
mov eax, dword [ebp + 4]
movzx esi, byte [edi + 0x4ceec4]
mov dword [esp + 0x48], eax
test cl, cl
je 0x47082e
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x47082e
push ebp
call fcn.004268b0
mov cl, byte [ebp + 9]
add esp, 4
mov eax, dword [esp + 0x48]
cmp esi, 0xf
jne 0x47083d
mov eax, dword [eax]
mov esi, dword [eax + 0x64]
add esi, dword [ebp + 0x14]
jmp 0x470849
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov esi, dword [eax + esi*4 + 0x24]
bswap esi
test cl, cl
je 0x47085c
add dword [ebp + 0xc], 0xffffffff
jne 0x47085c
push ebp
call fcn.00492520
add esp, 4
movzx eax, byte [edi + 0x4ceec5]
add eax, esi
push eax
movzx eax, byte [edi + 0x4ceec4]
push eax
push dword [esp + 0x20]
call fcn.00451c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4708e6
add edi, 2
cmp edi, 0xa
jl 0x470800
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x50], eax
jne 0x4708a6
push edi
push ebp
call fcn.0044eac0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4708e6
push edi
call fcn.0044e8f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4708e6
cmp dword [esp + 0x50], eax
jne 0x4708e6
push edi
call fcn.0044f3c0
push eax
push ebp
call fcn.00451380
mov eax, dword [edi + 4]
push 1
push dword [esp + 0x30]
push dword [eax + 0x24]
push ebp
call fcn.00451480
add esp, 0x1c
mov esi, eax
jmp 0x4708e6
mov esi, 7
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x38]
push 1
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x40]
push 0
mov dword [ebx + 0x6c], eax
mov al, byte [esp + 0x1b]
push 0xffffffffffffffff
push ebp
mov byte [ebx + 0xa8], 0
mov byte [ebx + 0x5a], al
call fcn.00451480
mov ebp, dword [esp + 0x3c]
add esp, 0x10
mov byte [ebx + 0x51], 1
test ebp, ebp
je 0x47094b
push dword [ebp + 4]
call fcn.0044e500
add esp, 4
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
push ebx
call fcn.0046f220
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret