Function at 0x1014a150
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x34], 0
mov ebp, ecx
cmp byte [edi + 0x4f], 0
jne 0x1014a1ab
mov edx, dword [ebp]
test edx, edx
je 0x1014a177
mov ecx, edi
call fcn.100e2680
push 0
push 0x28
mov ecx, edi
call fcn.100e2970
mov esi, eax
add esp, 8
test esi, esi
je 0x1014a19b
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp dword [edi + 0xb0], 1
jle 0x1014a1df
mov edx, dword [ebp]
test edx, edx
je 0x1014a1c2
mov ecx, edi
call fcn.100e2680
push 0
push 0x2b
mov ecx, edi
call fcn.100e2970
mov esi, eax
add esp, 8
test esi, esi
je 0x1014a19b
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x1014a192
mov esi, dword [esp + 0x84]
mov ebx, dword [edi + 0x3c]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x1014a29d
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101e7840], 3
je 0x1014a24c
mov edx, dword [ebp]
test edx, edx
je 0x1014a215
mov ecx, edi
call fcn.100e2680
push 0
push 0x12
mov ecx, edi
call fcn.100e2970
add esp, 8
test eax, eax
je 0x1014a23c
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101f8704]
mov word [eax + 0x10], cx
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x1014a270
cmp byte [esi + 0xa], 1
jne 0x1014a270
mov edx, dword [esi + 0x10]
mov eax, ebx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x1014a2a2
test cl, 1
je 0x1014a284
mov eax, ebx
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x1014a2a2
mov dl, 1
mov ecx, esi
call fcn.10101030
mov edx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x1014a2a2
mov edx, 0x101ec798
mov ecx, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x64]
mov dword [esp + 0x30], ecx
mov cl, byte [edi + 0x58]
mov dword [esp + 0x38], eax
or eax, 6
mov dword [esp + 0x3c], ebx
and ebx, 0xfffffffe
mov dword [edi + 0x24], ebx
mov ebx, dword [esp + 0x80]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x30]
and ecx, 0xefffafff
shl ebx, 4
mov byte [edi + 0x58], 0
or ecx, 0x201
mov dword [edi + 0x20], ecx
mov dword [esp + 0x40], esi
mov esi, dword [edi + 0x68]
mov ecx, dword [ebx + eax]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + eax + 4]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebp
mov eax, dword [esi + 4]
push edi
mov dword [esp + 0x90], ebx
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [esp + 0x26], al
mov eax, dword [edi + 0x14]
mov dword [esp + 0x38], eax
call fcn.1014a020
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
test ebx, ebx
jne 0x1014a7d0
mov eax, dword [esp + 0x28]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [esp + 0x84], 0
mov dword [esp + 0x34], eax
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], ebx
je 0x1014a3e5
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x1014a3e1
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1014a39c
cmp dword [esp + 0x24], eax
jl 0x1014a3e1
jg 0x1014a39c
cmp dword [esp + 0x20], eax
jbe 0x1014a3e1
mov edx, dword [ebp]
mov ebx, 1
test edx, edx
je 0x1014a3af
mov ecx, edi
call fcn.100e2680
push 0
push 0x1b
mov ecx, edi
call fcn.100e2970
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x1014a3d9
push 0x1b
push str.output_file_already_exists
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [ebp], eax
jmp 0x1014a7d0
or dword [edi + 0x18], 8
mov cl, byte [esi + 9]
test cl, cl
je 0x1014a3ff
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1014a3ff
mov ecx, esi
call fcn.100f4370
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [esp + 0x20], edx
test cl, cl
je 0x1014a41d
add dword [esi + 0xc], 0xffffffff
jne 0x1014a41d
mov ecx, esi
call fcn.100f4330
mov eax, dword [edi + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x80]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.100f6880
xor edx, edx
mov ecx, esi
call fcn.100f6900
mov edx, eax
mov ecx, ebx
call fcn.100f6900
mov edx, 0x21
mov ecx, ebx
call fcn.100f69f0
push str.BEGIN
mov edx, ebp
mov ecx, edi
call fcn.10149f30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a7d0
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x84], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100f7170
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a7d0
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1014a4a5
mov dword [edi + 0x5c], ebx
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + 0x20]
push 0
push dword [esp + 0x24]
call fcn.100f6ac0
add esp, 8
test eax, eax
jne 0x1014a7cb
cmp byte [esp + 0x16], al
jne 0x1014a4e4
mov edx, dword [edi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.100f6ac0
add esp, 8
test eax, eax
jne 0x1014a7cb
cmp byte [edi + 0x51], 0
jne 0x1014a7cb
mov al, byte [edi + 0x54]
test al, al
js 0x1014a4fa
movsx eax, al
jmp 0x1014a501
mov ecx, esi
call fcn.100f6cc0
mov edx, eax
mov ecx, ebx
call fcn.100f6c50
push dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebp
push edi
mov byte [edi + 0xa4], al
call fcn.1014a020
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a7d0
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebp
push edi
call fcn.1014a020
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a7d0
push dword [esp + 0x18]
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 ebp
push edi
call fcn.1014a020
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a7d0
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebp
push edi
call fcn.1014a020
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a7d0
xor ebp, ebp
nop dword [eax]
nop dword [eax + eax]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
movzx ebx, byte [ebp + 0x101e28c4]
mov dword [esp + 0x28], eax
test cl, cl
je 0x1014a5cc
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1014a5cc
mov ecx, esi
call fcn.100f4370
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x28]
cmp ebx, 0xf
jne 0x1014a5db
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [esi + 0x14]
jmp 0x1014a5e7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x1014a5f8
add dword [esi + 0xc], 0xffffffff
jne 0x1014a5f8
mov ecx, esi
call fcn.100f4330
movzx eax, byte [ebp + 0x101e28c5]
movzx edx, byte [ebp + 0x101e28c4]
add eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.100fe0a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a7d0
add ebp, 2
cmp ebp, 0xa
jl 0x1014a5a0
cmp dword [esp + 0x84], eax
jne 0x1014a787
cmp byte [esi + 9], al
je 0x1014a64c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x1014a64c
mov ecx, esi
call fcn.100f4370
mov ebp, dword [esp + 0x1c]
cmp byte [ebp + 9], 0
je 0x1014a666
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x1014a666
mov ecx, ebp
call fcn.100f4370
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x3c]
cmp dword [ebx], 0
je 0x1014a6b7
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
and ecx, 0x7fffffff
cdq
push edx
push eax
push 0
push ecx
call fcn.101a4ca0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx]
mov dword [esp + 0x30], edx
push 0xb
push ebx
mov eax, dword [eax + 0x28]
call eax
xor ebx, ebx
add esp, 0xc
cmp eax, 0xc
cmovne ebx, eax
test ebx, ebx
jne 0x1014a75b
mov eax, dword [ebp]
xorps xmm0, xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push 0x7fffffff
push eax
mov dword [esp + 0x50], 0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], 1
call fcn.100ff6e0
lea eax, [esp + 0x50]
push eax
call fcn.100ffd10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1014a723
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x1014a75b
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x1014a75b
inc dword [ecx + 0x64]
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x1014a74e
nop dword [eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1014a740
mov ecx, dword [ecx + 0xd4]
xor edx, edx
call fcn.100eb470
cmp byte [ebp + 9], 0
je 0x1014a76e
add dword [ebp + 0xc], 0xffffffff
jne 0x1014a76e
mov ecx, ebp
call fcn.100f4330
cmp byte [esi + 9], 0
je 0x1014a781
add dword [esi + 0xc], 0xffffffff
jne 0x1014a781
mov ecx, esi
call fcn.100f4330
test ebx, ebx
jne 0x1014a7d0
jmp 0x1014a78b
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call fcn.100f80a0
mov ebx, eax
test ebx, ebx
jne 0x1014a7d0
cmp dword [esp + 0x84], eax
jne 0x1014a7d0
mov ecx, ebp
call fcn.100f6cc0
mov edx, eax
mov ecx, esi
call fcn.100f6c50
mov eax, dword [ebp + 4]
mov ecx, esi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x20]
call fcn.100f6ac0
add esp, 8
mov ebx, eax
jmp 0x1014a7d0
mov ebx, 7
mov eax, dword [esp + 0x38]
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 + 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x68], eax
mov al, byte [esp + 0x17]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.100f6ac0
mov ebp, dword [esp + 0x3c]
add esp, 8
mov byte [edi + 0x4f], 1
test ebp, ebp
je 0x1014a834
mov ecx, dword [ebp + 4]
call fcn.100f6710
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov ecx, edi
call fcn.10123730
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x6c
ret