Function at 0x101b99e0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x28], 0
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
cmp byte [esi + 0x55], 0
jne 0x101b9a3d
push 0
push 0x28
mov ecx, esi
call fcn.10236dd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101b9a21
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [edi]
test edx, edx
je 0x101b9a2e
mov ecx, esi
call fcn.102371f0
mov dword [edi], ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
cmp dword [esi + 0xbc], 1
jle 0x101b9a63
push 0
push 0x2b
mov ecx, esi
call fcn.10236dd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101b9a21
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x101b9a18
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esi + 0x3c]
test ecx, ecx
je 0x101b9b04
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x3f
cmp byte [eax + 0x10260088], 3
je 0x101b9ab5
push 0
push 0x12
mov ecx, esi
call fcn.10236dd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101b9a21
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [ebx], xmm0
mov cx, word [0x10280940]
mov word [ebx + 0x10], cx
jmp 0x101b9a21
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x101b9ad9
cmp byte [ecx + 0x12], 1
jne 0x101b9ad9
mov edx, dword [ecx + 8]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x101b9b09
test dl, 1
je 0x101b9aed
mov eax, ebp
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x101b9b09
mov dl, 1
call fcn.10211760
mov edx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x101b9b09
mov edx, 0x10265063
mov ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x28], ecx
mov cl, byte [esi + 0x5e]
mov dword [esp + 0x3c], ebx
and ebx, 0xfffffffe
mov dword [esi + 0x24], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x38], eax
or eax, 6
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x18], eax
and ecx, 0xefffafff
mov eax, dword [esi + 0x10]
or ecx, 0x201
shl ebx, 4
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], 0
mov dword [esp + 0x88], ebx
mov ecx, dword [ebx + eax]
mov ebx, dword [ebx + eax + 4]
mov dword [esp + 0x40], edi
mov edi, dword [esi + 0x6c]
mov dword [esp + 0x44], edi
mov eax, dword [ebx + 4]
mov edi, dword [esi + 0x70]
mov dword [esp + 0x48], edi
mov edi, dword [esi + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp byte [eax + 0xc], 0
mov dword [esp + 0x1c], ebx
jne 0x101b9ba4
cmp byte [eax + 0x10], 0
mov dword [esp + 0x20], 0
je 0x101b9bac
mov dword [esp + 0x20], 1
mov eax, dword [esi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push esi
mov dword [esp + 0x34], eax
call fcn.101ba1d0
mov edi, eax
mov dword [esi + 0x3c], ebp
add esp, 0x10
test edi, edi
jne 0x101ba004
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov ebp, dword [eax + 4]
cmp dword [esp + 0x8c], edi
je 0x101b9c72
mov eax, dword [ebp + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x101b9c6e
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x101b9c25
cmp dword [esp + 0x34], eax
jl 0x101b9c6e
jg 0x101b9c25
cmp dword [esp + 0x30], eax
jbe 0x101b9c6e
push 0
push 0x1b
mov ecx, esi
mov edi, 1
call fcn.10236dd0
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x101b9c50
push 0x1b
push str.output_file_already_exists
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp]
test edx, edx
je 0x101b9c62
mov ecx, esi
call fcn.102371f0
mov eax, dword [esp + 0x24]
mov dword [ebp], eax
jmp 0x101ba004
or dword [esi + 0x18], 8
mov ecx, ebx
call fcn.1021d7f0
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x30], eax
mov edx, dword [edx + ecx + 0xc]
mov ecx, ebp
mov edx, dword [edx + 0x50]
call fcn.1021db30
xor edx, edx
mov ecx, ebx
call fcn.1021da70
mov edx, eax
mov ecx, ebp
call fcn.1021da70
mov edx, 0x21
mov ecx, ebp
call fcn.1021d950
mov edx, dword [esp + 0x14]
mov ecx, esi
push str.BEGIN
call fcn.101ba220
mov edi, eax
add esp, 4
test edi, edi
jne 0x101ba004
xor edx, edx
mov ecx, ebx
cmp dword [esp + 0x8c], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.1021cf40
mov edi, eax
add esp, 4
test edi, edi
jne 0x101ba004
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x101b9d10
cmp dword [esp + 0x8c], edi
jne 0x101b9d10
mov dword [esi + 0x64], edi
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, dword [edx + 0x24]
push 0
push edi
call fcn.1021d860
add esp, 8
test eax, eax
jne 0x101b9ff9
cmp dword [esp + 0x20], eax
jne 0x101b9d49
mov edx, dword [esi + 0x64]
mov ecx, ebp
push eax
push edi
call fcn.1021d860
add esp, 8
test eax, eax
jne 0x101b9ff9
cmp byte [esi + 0x57], 0
jne 0x101b9ff9
mov al, byte [esi + 0x5a]
test al, al
js 0x101b9d5f
movsx eax, al
jmp 0x101b9d66
mov ecx, ebx
call fcn.1021d670
mov edx, eax
mov ecx, ebp
call fcn.1021d6c0
push dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [esi + 0xb0], al
push esi
call fcn.101ba1d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101ba004
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push esi
call fcn.101ba1d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101ba004
push dword [esp + 0x18]
mov byte [esi + 0xb0], 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 dword [esp + 0x1c]
push esi
call fcn.101ba1d0
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101ba004
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push esi
call fcn.101ba1d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101ba004
xor ebx, ebx
nop word [eax + eax]
movzx edx, byte [ebx + 0x1025b354]
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10215160
movzx eax, byte [ebx + 0x1025b355]
add esp, 4
add eax, dword [esp + 0x30]
mov ecx, ebp
movzx edx, byte [ebx + 0x1025b354]
push eax
call fcn.102150b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x101ba000
add ebx, 2
cmp ebx, 0xa
jl 0x101b9e10
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x8c], eax
jne 0x101b9fb5
cmp byte [ebx + 9], al
je 0x101b9e7c
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], al
jne 0x101b9e7c
mov ecx, ebx
call fcn.102208e0
cmp byte [ebp + 9], 0
je 0x101b9e92
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x101b9e92
mov ecx, ebp
call fcn.102208e0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x40]
cmp dword [edi], 0
je 0x101b9edd
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.10247080
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi]
mov dword [esp + 0x38], edx
push 0xb
push edi
mov eax, dword [eax + 0x28]
call eax
xor edi, edi
add esp, 0xc
cmp eax, 0xc
cmovne edi, eax
test edi, edi
jne 0x101b9f8b
mov eax, dword [ebp]
xorps xmm0, xmm0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x50]
push accept
push eax
mov dword [esp + 0x58], 0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x70], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], 1
call sym.WMCommon.dll_sqlite3_backup_step
lea eax, [esp + 0x58]
push eax
call sym.WMCommon.dll_sqlite3_backup_finish
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x101b9f4c
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x101b9f8b
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x101b9f8b
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x101b9f7e
nop word [eax + eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x101b9f70
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.1022c040
cmp byte [ebp + 9], 0
je 0x101b9f9e
add dword [ebp + 0xc], 0xffffffff
jne 0x101b9f9e
mov ecx, ebp
call fcn.102209a0
cmp byte [ebx + 9], 0
je 0x101b9fb1
add dword [ebx + 0xc], 0xffffffff
jne 0x101b9fb1
mov ecx, ebx
call fcn.102209a0
test edi, edi
jne 0x101ba004
mov ecx, ebp
call fcn.1021c230
mov edi, eax
test edi, edi
jne 0x101ba004
cmp dword [esp + 0x8c], eax
jne 0x101ba004
mov ecx, ebp
call fcn.1021d670
mov edx, eax
mov ecx, ebx
call fcn.1021d6c0
mov ecx, ebp
call fcn.1021d7f0
mov ecx, dword [ebp + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, ebx
call fcn.1021d860
add esp, 8
mov edi, eax
jmp 0x101ba004
mov edi, 7
jmp 0x101ba004
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, ebx
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x74], eax
mov al, byte [esp + 0x13]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.1021d860
mov ebx, dword [esp + 0x34]
add esp, 8
mov byte [esi + 0x55], 1
test ebx, ebx
je 0x101ba076
mov ecx, dword [ebx + 4]
call fcn.1021dbd0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.101e8770
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret