Function at 0x100ffd30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x1030f644]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x28], eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x4f], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 0
jne 0x100ffdef
mov ecx, dword [ebx]
test ecx, ecx
je 0x100ffdb2
cmp dword [esi + 0x1d0], 0
je 0x100ffd89
mov edx, ecx
mov ecx, esi
call fcn.10096430
jmp 0x100ffdb2
cmp ecx, dword [esi + 0x130]
jb 0x100ffda9
cmp ecx, dword [esi + 0x134]
jae 0x100ffda9
mov eax, dword [esi + 0x12c]
mov dword [ecx], eax
mov dword [esi + 0x12c], ecx
jmp 0x100ffdb2
push ecx
call sym.BasicBusinessConfigCenter.dll_sqlite3_free
add esp, 4
push 0
push 0x28
mov ecx, esi
call fcn.10096790
mov esi, eax
add esp, 8
test esi, esi
je 0x100ffdd6
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x100ffe1c
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.10096b10
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x20], edx
test edi, edi
je 0x100ffeb6
movzx ecx, word [edi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x102e0378], 3
je 0x100ffe65
push str.non_text_filename
mov edx, esi
mov ecx, ebx
call fcn.10096b10
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100ffe89
cmp byte [edi + 0xa], 1
jne 0x100ffe89
mov ecx, dword [edi + 0x10]
mov eax, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100ffebb
test cl, 1
je 0x100ffe9d
mov eax, edx
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100ffebb
mov dl, 1
mov ecx, edi
call fcn.100b68e0
mov ecx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100ffebb
mov ecx, 0x102e39fc
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x3c], eax
or eax, 6
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
and edx, 0xefffaf7f
mov dword [esp + 0x48], ebx
or edx, 0x201
mov ebx, dword [esi + 0x68]
shl edi, 4
mov dword [esi + 0x20], edx
mov dword [esp + 0x4c], ebx
mov bl, byte [esi + 0x58]
mov byte [esi + 0x58], 0
mov edx, dword [eax + edi]
mov dword [esp + 0x28], edi
mov edi, dword [eax + edi + 4]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov byte [esp + 0x1f], bl
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x20]
push ebx
push esi
mov eax, dword [eax]
mov dword [esp + 0x20], edx
mov al, byte [eax + 0xc]
mov byte [esp + 0x26], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], eax
call fcn.100ffbb0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x10100272
mov eax, dword [esp + 0x30]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], ebx
je 0x100fffc6
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x50], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100fffc2
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100fffa5
cmp dword [esp + 0x54], eax
jl 0x100fffc2
jg 0x100fffa5
cmp dword [esp + 0x50], eax
jbe 0x100fffc2
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.output_file_already_exists
mov ebx, 1
call fcn.10096b10
add esp, 4
jmp 0x10100272
or dword [esi + 0x18], 8
mov ecx, edi
call fcn.100ab410
cmp dword [esi + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x100ffffd
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.10090bf0
add esp, 8
cmp dword [esp + 0x38], 0
je 0x100ffffd
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x28]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.100ab0e0
xor edx, edx
mov ecx, edi
call fcn.100ab160
mov edx, eax
mov ecx, ebx
call fcn.100ab160
mov edx, 0x21
mov ecx, ebx
call fcn.100ab260
mov edx, dword [esp + 0x18]
mov ecx, esi
push str.BEGIN
call fcn.100ffab0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10100272
xor edx, edx
mov ecx, edi
cmp dword [esp + 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100aba80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10100272
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10100081
mov dword [esi + 0x5c], ebx
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [esp + 0x24]
call fcn.100ab330
add esp, 8
test eax, eax
jne 0x1010026d
cmp byte [esp + 0x16], al
jne 0x101000c0
mov edx, dword [esi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.100ab330
add esp, 8
test eax, eax
jne 0x1010026d
cmp byte [esi + 0x51], 0
jne 0x1010026d
mov al, byte [esi + 0x54]
test al, al
js 0x101000d6
movsx eax, al
jmp 0x101000dd
mov ecx, edi
call fcn.100ab5a0
mov edx, eax
mov ecx, ebx
call fcn.100ab520
push dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x20]
mov byte [esi + 0xa4], al
push esi
call fcn.100ffbb0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10100272
push dword [esp + 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x20]
push esi
call fcn.100ffbb0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10100272
push dword [esp + 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 dword [esp + 0x20]
push esi
call fcn.100ffbb0
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10100272
push dword [esp + 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x20]
push esi
call fcn.100ffbb0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10100272
mov dword [esp + 0x10], eax
nop
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x102dcabc]
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
test cl, cl
je 0x101001ac
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x101001ac
mov ecx, edi
call fcn.100a8990
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x28]
cmp ebx, 0xf
jne 0x101001bb
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x101001c7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x101001d8
add dword [edi + 0xc], 0xffffffff
jne 0x101001d8
mov ecx, edi
call fcn.100a8950
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x102dcabd]
movzx edx, byte [ecx + 0x102dcabc]
add eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.100b35a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10100272
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
cmp eax, 0xa
jl 0x10100180
cmp dword [esp + 0x24], ebx
jne 0x1010022a
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.100b55c0
mov ebx, eax
test ebx, ebx
jne 0x10100272
mov ecx, dword [esp + 0x1c]
call fcn.100acc30
mov ebx, eax
test ebx, ebx
jne 0x10100272
cmp dword [esp + 0x24], eax
jne 0x10100272
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.100ab5a0
mov edx, eax
mov ecx, edi
call fcn.100ab520
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.100ab330
add esp, 8
mov ebx, eax
jmp 0x10100272
mov ebx, 7
mov eax, dword [esp + 0x3c]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x17]
push 1
push 0xffffffffffffffff
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.100ab330
mov edi, dword [esp + 0x3c]
add esp, 8
mov byte [esi + 0x4f], 1
test edi, edi
je 0x101002d6
mov ecx, dword [edi + 4]
call fcn.100aaf60
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.100d9910
mov ecx, dword [esp + 0x5c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101afab5
mov esp, ebp
pop ebp
ret