Function at 0x101b3550
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x4f], 0
mov esi, eax
mov dword [ebp - 0x1c], 0
jne 0x101b35aa
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x101b3578
call fcn.101364b0
push 0
push 0x28
mov ecx, edi
call fcn.1014f870
mov esi, eax
add esp, 8
test esi, esi
je 0x101b359c
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.100ffb30
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xb0], 1
jle 0x101b35de
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x101b35c1
call fcn.101364b0
push 0
push 0x2b
mov ecx, edi
call fcn.1014f870
mov esi, eax
add esp, 8
test esi, esi
je 0x101b359c
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x101b3593
mov eax, dword [edi + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101b3677
movzx ecx, word [eax + 8]
and ecx, 0x3f
cmp byte [ecx + 0x1026de50], 3
je 0x101b365d
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x101b360f
mov ecx, edi
call fcn.101364b0
push 0
push 0x12
mov ecx, edi
call fcn.1014f870
add esp, 8
test eax, eax
je 0x101b364f
mov edx, dword [str.non_text_filename]
mov dword [eax], edx
mov ecx, dword [0x10279c1c]
mov dword [eax + 4], ecx
mov edx, dword [0x10279c20]
mov dword [eax + 8], edx
mov ecx, dword [0x10279c24]
mov dword [eax + 0xc], ecx
mov dx, word [0x10279c28]
mov word [eax + 0x10], dx
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call sym.SQLite.Interop.dll_sqlite3_value_text
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
add esp, 4
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x101b367e
mov dword [ebp - 0x10], 0x10275ad6
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x24]
mov ebx, dword [edi + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x68]
mov dword [edi + 0x24], edx
and dword [edi + 0x24], 0xfffffffe
mov dword [ebp - 0x40], ecx
or ecx, 0x201
mov dword [edi + 0x20], ecx
and dword [edi + 0x20], 0xefffafff
mov dword [ebp - 0x30], eax
mov al, byte [edi + 0x58]
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + 0x10]
mov byte [edi + 0x58], 0
mov dword [ebp - 0x28], ebx
or ebx, 6
mov dword [edi + 0x18], ebx
shl esi, 4
mov ecx, esi
mov ebx, dword [ecx + edx + 4]
mov byte [ebp - 1], al
mov eax, dword [ecx + edx]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 0xc]
mov edx, dword [ebp - 0x10]
push edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push str.ATTACH__Q_AS_vacuum_db
push eax
mov dword [ebp - 0x18], ecx
call fcn.101ab100
mov ecx, dword [ebp - 8]
mov esi, eax
xor edx, edx
add esp, 0xc
mov dword [edi + 0x3c], ecx
cmp esi, edx
jne 0x101b3a01
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [edi + 0x10]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], edx
je 0x101b37a4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov ecx, dword [eax]
cmp ecx, edx
je 0x101b37a0
lea edx, [ebp - 0x38]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x101b3759
cmp dword [ebp - 0x34], eax
jl 0x101b37a0
jg 0x101b3759
cmp dword [ebp - 0x38], eax
jbe 0x101b37a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, 1
test eax, eax
je 0x101b376e
mov ecx, edi
call fcn.101364b0
push 0
push 0x1b
mov ecx, edi
call fcn.1014f870
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x101b3796
push 0x1b
push str.output_file_already_exists
push eax
call fcn.100ffb30
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x101b3a01
or dword [edi + 0x18], 8
mov eax, ebx
call fcn.1013bef0
cmp dword [edi + 0x5c], 0
mov dword [ebp - 0x10], eax
je 0x101b37db
mov eax, dword [edi + 0x10]
add eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x101b37ce
lea edx, [ebp - 0x20]
lea esi, [ebp - 0x34]
call fcn.10121d00
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x20], 0
je 0x101b37db
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [edx + 0x50]
push eax
mov eax, esi
call fcn.1013bfe0
add esp, 4
push 0
mov eax, ebx
call fcn.1013bf90
add esp, 4
push eax
mov eax, esi
call fcn.1013bf90
add esp, 4
push 0x21
mov eax, esi
call fcn.1013bf40
mov ecx, dword [ebp + 8]
add esp, 4
push str.BEGIN
push ecx
push edi
call fcn.101a6110
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov edx, dword [ebp + 0xc]
neg edx
sbb edx, edx
and edx, 0xfffffffe
push eax
add edx, 2
push edx
push ebx
call fcn.10197c50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x101b3862
mov dword [edi + 0x5c], esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 4]
mov esi, dword [ebp - 8]
mov eax, dword [edx + 0x24]
push 0
push ecx
push esi
call fcn.1017a590
add esp, 0xc
test eax, eax
jne 0x101b39fc
cmp dword [ebp - 0x24], eax
jne 0x101b38a0
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [edi + 0x5c]
push edx
push esi
call fcn.1017a590
add esp, 0xc
test eax, eax
jne 0x101b39fc
cmp byte [edi + 0x51], 0
jne 0x101b39fc
mov al, byte [edi + 0x54]
test al, al
js 0x101b38b6
movsx eax, al
jmp 0x101b38bd
mov eax, ebx
call fcn.1013bd70
push eax
mov eax, esi
call fcn.1013bdc0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x18]
add esp, 4
push ecx
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push edx
mov byte [edi + 0xa4], al
call fcn.101ab100
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ecx
call fcn.101ab100
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov edx, dword [ebp - 0xc]
push edx
mov byte [edi + 0xa4], al
mov eax, dword [ebp + 8]
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push eax
call fcn.101ab100
and dword [edi + 0x18], 0xfffffffb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push edx
call fcn.101ab100
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101b3a01
mov dword [ebp - 0xc], esi
jmp 0x101b3963
mov esi, dword [ebp - 0xc]
movzx ecx, byte [esi + 0x1026ec54]
lea eax, [ebp - 0x24]
push eax
push ecx
mov eax, ebx
call fcn.1013bd10
movzx edx, byte [esi + 0x1026ec55]
add edx, dword [ebp - 0x24]
movzx eax, byte [esi + 0x1026ec54]
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.10179b90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x101b3a01
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
cmp eax, 0xa
jl 0x101b3960
cmp dword [ebp + 0xc], esi
jne 0x101b39bb
mov eax, dword [ebp - 8]
call fcn.1019e430
mov esi, eax
test esi, esi
jne 0x101b3a01
mov eax, dword [ebp - 8]
call fcn.1019a520
mov esi, eax
test esi, esi
jne 0x101b3a01
cmp dword [ebp + 0xc], eax
jne 0x101b3a01
mov esi, dword [ebp - 8]
mov eax, esi
call fcn.1013bd70
push eax
mov eax, ebx
call fcn.1013bdc0
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
add esp, 4
push 1
push edx
push ebx
call fcn.1017a590
add esp, 0xc
mov esi, eax
jmp 0x101b3a01
mov esi, 7
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x2c]
push 1
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x24], edx
mov dl, byte [ebp - 1]
mov dword [edi + 0x64], eax
push 0xffffffffffffffff
push ebx
or eax, 0xffffffff
mov byte [edi + 0xa4], 0
mov dword [edi + 0x68], ecx
mov byte [edi + 0x58], dl
call fcn.1017a590
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov byte [edi + 0x4f], 1
test ebx, ebx
je 0x101b3a57
mov eax, dword [ebx + 4]
call fcn.10193ff0
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov eax, edi
call fcn.1015d950
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret