Function at 0x10129ed0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x4f], bl
jne 0x10129f5a
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x10129f29
cmp dword [esi + 0x1e8], ebx
je 0x10129f00
push ecx
push esi
call fcn.100f05d0
add esp, 8
jmp 0x10129f29
cmp ecx, dword [esi + 0x138]
jb 0x10129f20
cmp ecx, dword [esi + 0x13c]
jae 0x10129f20
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
jmp 0x10129f29
push ecx
call fcn.100b7a00
add esp, 4
push 0
push 0x28
push esi
call fcn.1010c820
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10129f4c
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.1018c580
add esp, 0xc
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xac], 1
jle 0x10129fc8
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x10129fa9
cmp dword [esi + 0x1e8], ebx
je 0x10129f80
push ecx
push esi
call fcn.100f05d0
add esp, 8
jmp 0x10129fa9
cmp ecx, dword [esi + 0x138]
jb 0x10129fa0
cmp ecx, dword [esi + 0x13c]
jae 0x10129fa0
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
jmp 0x10129fa9
push ecx
call fcn.100b7a00
add esp, 4
push 0
push 0x2b
push esi
call fcn.1010c820
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10129f4c
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x10129f43
mov ecx, dword [ebp + 0x14]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x1012a0b8
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x1f
cmp byte [eax + 0x101e4588], 3
je 0x1012a065
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x1012a031
cmp dword [esi + 0x1e8], ebx
je 0x1012a008
push ecx
push esi
call fcn.100f05d0
add esp, 8
jmp 0x1012a031
cmp ecx, dword [esi + 0x138]
jb 0x1012a028
cmp ecx, dword [esi + 0x13c]
jae 0x1012a028
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
jmp 0x1012a031
push ecx
call fcn.100b7a00
add esp, 4
push 0
push 0x12
push esi
call fcn.1010c820
add esp, 0xc
test eax, eax
je 0x1012a057
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101ee31c]
mov word [eax + 0x10], cx
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1012a089
cmp byte [ecx + 0xa], 1
jne 0x1012a089
mov ecx, dword [ecx + 0x10]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x1012a0bd
test dl, 1
je 0x1012a09d
mov eax, edi
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x1012a0bd
push 1
push ecx
call fcn.10148b70
mov ecx, eax
add esp, 8
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x1012a0bd
mov ecx, 0x101e239c
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x2c], eax
or eax, 6
mov dword [esi + 0x18], eax
mov dword [ebp - 0x28], edi
mov edi, dword [esi + 0x64]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dl, byte [esi + 0x58]
and eax, 0xefffaf7f
mov dword [ebp - 0x30], edi
or eax, 0x201
mov edi, dword [esi + 0x68]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x28]
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 0x10]
shl edi, 4
mov byte [esi + 0x58], bl
mov byte [ebp - 1], dl
push ecx
mov edx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0xc], eax
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov eax, dword [eax + 4]
push esi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp + 0xf], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
call fcn.100d6410
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x1012a43e
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x14], edi
je 0x1012a21f
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x1012a21b
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1012a1a2
cmp dword [ebp - 0x18], eax
jl 0x1012a21b
jg 0x1012a1a2
cmp dword [ebp - 0x1c], eax
jbe 0x1012a21b
mov eax, dword [ebp + 8]
mov edi, 1
mov ecx, dword [eax]
test ecx, ecx
je 0x1012a1ee
cmp dword [esi + 0x1e8], 0
je 0x1012a1c5
push ecx
push esi
call fcn.100f05d0
add esp, 8
jmp 0x1012a1ee
cmp ecx, dword [esi + 0x138]
jb 0x1012a1e5
cmp ecx, dword [esi + 0x13c]
jae 0x1012a1e5
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
jmp 0x1012a1ee
push ecx
call fcn.100b7a00
add esp, 4
push 0
push 0x1b
push esi
call fcn.1010c820
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1012a211
push 0x1b
push str.output_file_already_exists
push ebx
call fcn.1018c580
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1012a43b
or dword [esi + 0x18], 8
mov edi, dword [ebp - 0xc]
push edi
call fcn.10106d20
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x5c], 0
je 0x1012a23b
mov dword [esi + 0x5c], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + ecx + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.10108780
push 0
push edi
call fcn.101089b0
push eax
push ebx
call fcn.101089b0
push 0x21
push ebx
call fcn.101088e0
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.100d62a0
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1012a43b
cmp dword [ebp + 0x14], eax
mov ecx, 2
push eax
cmove eax, ecx
push eax
push dword [ebp - 0xc]
call fcn.10105be0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1012a43b
mov edi, dword [ebp - 0xc]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x1012a2ba
mov dword [esi + 0x5c], 0
mov ecx, dword [edi + 4]
push 0
push dword [ebp - 0x18]
push dword [ecx + 0x24]
push ebx
call fcn.10108810
add esp, 0x10
test eax, eax
jne 0x1012a436
cmp byte [ebp + 0xf], al
jne 0x1012a2f0
push eax
push dword [ebp - 0x18]
push dword [esi + 0x5c]
push ebx
call fcn.10108810
add esp, 0x10
test eax, eax
jne 0x1012a436
cmp byte [esi + 0x51], 0
jne 0x1012a436
mov al, byte [esi + 0x54]
test al, al
js 0x1012a306
movsx eax, al
jmp 0x1012a30f
push edi
call fcn.10106c70
add esp, 4
push eax
push ebx
call fcn.10108700
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0xa4], al
call fcn.100d6410
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1012a43b
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebx
push esi
call fcn.100d6410
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1012a43b
push dword [ebp - 0x10]
mov byte [esi + 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 ebx
push esi
call fcn.100d6410
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1012a43b
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.100d6410
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1012a43b
xor ebx, ebx
nop
lea eax, [ebp + 0xc]
push eax
movzx eax, byte [ebx + 0x101e4710]
push eax
push dword [ebp - 0xc]
call fcn.10106cc0
movzx eax, byte [ebx + 0x101e4711]
add eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebx + 0x101e4710]
push eax
push dword [ebp - 0x14]
call fcn.10108c30
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1012a43b
add ebx, 2
cmp ebx, 0xa
jl 0x1012a3a0
mov ebx, dword [ebp - 0x14]
cmp dword [ebp + 0x14], eax
jne 0x1012a3fa
push ebx
push dword [ebp - 0xc]
call fcn.10106400
mov edi, eax
add esp, 8
test edi, edi
jne 0x1012a43b
push ebx
call fcn.10106200
mov edi, eax
add esp, 4
test edi, edi
jne 0x1012a43b
cmp dword [ebp + 0x14], eax
jne 0x1012a43b
push ebx
call fcn.10106c70
mov edi, dword [ebp - 0xc]
push eax
push edi
call fcn.10108700
mov eax, dword [ebx + 4]
push 1
push dword [ebp - 0x18]
push dword [eax + 0x24]
push edi
call fcn.10108810
add esp, 0x1c
mov edi, eax
jmp 0x1012a43b
mov edi, 7
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x30]
push 1
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
mov dword [esi + 0x68], eax
mov al, byte [ebp - 1]
push 0xffffffffffffffff
push dword [ebp - 0xc]
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.10108810
add esp, 0x10
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x1012a49b
push dword [ebx + 4]
call fcn.10105fa0
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.10128b70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret