Function at 0x10088ba0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
cmp byte [edi + 0x55], 0
mov eax, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
jne 0x10088c02
push 0
push 0x28
call fcn.1000ab60
mov esi, eax
add esp, 8
test esi, esi
je 0x10088be4
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.101025e0
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10088bf4
mov ecx, edi
call fcn.1000a790
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xbc], eax
jle 0x10088c25
push 0
push 0x2b
call fcn.1000ab60
mov esi, eax
add esp, 8
test esi, esi
je 0x10088be4
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x10088bdb
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10088ca1
movzx ecx, word [eax + 0x10]
and ecx, 0x3f
cmp byte [ecx + 0x10113928], 3
je 0x10088c87
push 0
push 0x12
mov ecx, edi
call fcn.1000ab60
mov esi, eax
add esp, 8
test esi, esi
je 0x10088be4
mov edx, dword [str.non_text_filename]
mov dword [esi], edx
mov eax, dword [0x1012113c]
mov dword [esi + 4], eax
mov ecx, dword [0x10121140]
mov dword [esi + 8], ecx
mov edx, dword [0x10121144]
mov dword [esi + 0xc], edx
mov ax, word [0x10121148]
mov word [esi + 0x10], ax
jmp 0x10088be4
push eax
call sym.MyService.dll_sqlite3_value_text
mov ecx, dword [edi + 0x3c]
and ecx, 0xfffffffe
add esp, 4
or ecx, 6
mov dword [ebp - 0x10], eax
mov dword [edi + 0x3c], ecx
jmp 0x10088ca8
mov dword [ebp - 0x10], 0x10112e3c
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x40], ebx
mov ebx, dword [edi + 0x6c]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [edi + 0x70]
mov dword [edi + 0x24], edx
and dword [edi + 0x24], 0xfffffffe
mov dword [ebp - 0x38], ecx
or ecx, 0x201
mov dword [edi + 0x20], ecx
and dword [edi + 0x20], 0xefffafff
mov dword [ebp - 0x48], ebx
mov ebx, dword [edi + 0x74]
mov dword [ebp - 0x34], edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x2c], eax
or eax, 6
mov dword [edi + 0x18], eax
add esi, esi
lea ecx, [edx + esi*8]
mov dword [ebp - 0x44], ebx
mov bl, byte [edi + 0x5e]
mov byte [edi + 0x5e], 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
cmp byte [ecx + 0xc], 0
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], eax
jne 0x10088d24
cmp byte [ecx + 0x10], 0
mov dword [ebp - 0x14], 0
je 0x10088d2b
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x14]
push eax
push str.ATTACH__Q_AS_vacuum_db
push ecx
mov eax, edi
mov dword [ebp - 0x18], edx
call fcn.10088a20
mov edx, dword [ebp - 0x20]
mov dword [edi + 0x3c], edx
mov ebx, eax
xor edx, edx
add esp, 0xc
cmp ebx, edx
jne 0x10089016
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], edx
je 0x10088dcf
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov ecx, dword [eax]
cmp ecx, edx
je 0x10088db9
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x10088da2
cmp dword [ebp - 0x24], eax
jl 0x10088db9
jg 0x10088da2
cmp dword [ebp - 0x28], eax
jbe 0x10088db9
mov esi, dword [ebp + 8]
mov eax, str.output_file_already_exists
mov ebx, 1
call fcn.1000aec0
jmp 0x10089016
or dword [edi + 0x18], 8
mov ecx, dword [edi + 0x10]
movzx ebx, byte [ecx + esi*8 + 8]
mov edx, dword [edi + 0x20]
and edx, 0x38
or ebx, edx
jmp 0x10088dd2
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.10023490
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + esi*8 + 0xc]
mov edx, dword [ecx + 0x50]
mov esi, dword [ebp - 0x10]
push edx
mov eax, esi
call fcn.10023260
mov eax, dword [ebp - 8]
add esp, 4
push 0
call fcn.100232b0
add esp, 4
push eax
mov eax, esi
call fcn.100232b0
add esp, 4
or ebx, 0x20
push ebx
mov eax, esi
call fcn.10023360
mov eax, dword [ebp + 8]
add esp, 4
push str.BEGIN
push eax
push edi
call fcn.10088920
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10089016
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
xor esi, esi
call fcn.10023d00
mov ebx, eax
test ebx, ebx
jne 0x10089016
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
cmp byte [edx + 5], 5
jne 0x10088e6e
cmp dword [ebp + 0xc], esi
jne 0x10088e6e
mov dword [edi + 0x64], esi
mov ebx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
push 0
push ebx
push esi
call fcn.100233b0
add esp, 0xc
test eax, eax
jne 0x10089011
cmp dword [ebp - 0x14], eax
jne 0x10088ea9
push eax
mov eax, dword [edi + 0x64]
push ebx
push esi
call fcn.100233b0
add esp, 0xc
test eax, eax
jne 0x10089011
cmp byte [edi + 0x57], 0
jne 0x10089011
mov al, byte [edi + 0x5a]
test al, al
js 0x10088ebf
movsx eax, al
jmp 0x10088ec7
mov eax, dword [ebp - 8]
call fcn.10023610
push eax
mov eax, esi
call fcn.10023590
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x18]
add esp, 4
push edx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push eax
mov eax, edi
mov byte [edi + 0xb0], cl
call fcn.10088a20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10089016
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push ecx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edx
mov eax, edi
call fcn.10088a20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10089016
mov ecx, dword [ebp + 8]
mov byte [edi + 0xb0], al
mov eax, dword [ebp - 0xc]
push eax
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push ecx
mov eax, edi
call fcn.10088a20
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10089016
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push edx
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push eax
mov eax, edi
call fcn.10088a20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10089016
mov dword [ebp - 0xc], ebx
jmp 0x10088f73
mov ebx, dword [ebp - 0xc]
movzx edx, byte [ebx + 0x1011475c]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
push ecx
push edx
call fcn.1002b650
movzx eax, byte [ebx + 0x1011475d]
add eax, dword [ebp - 0x24]
movzx ecx, byte [ebx + 0x1011475c]
push eax
push ecx
mov eax, esi
call fcn.1002b6b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10089016
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
cmp eax, 0xa
jl 0x10088f70
cmp dword [ebp + 0xc], ebx
jne 0x10088fcd
mov ebx, dword [ebp - 8]
mov eax, esi
call fcn.1002db90
mov ebx, eax
test ebx, ebx
jne 0x10089016
mov eax, esi
call fcn.100248f0
mov ebx, eax
test ebx, ebx
jne 0x10089016
cmp dword [ebp + 0xc], eax
jne 0x10089016
mov eax, esi
call fcn.10023610
mov ebx, dword [ebp - 8]
push eax
mov eax, ebx
call fcn.10023590
add esp, 4
mov eax, esi
call fcn.10023490
mov edx, dword [esi + 4]
push 1
push eax
mov eax, dword [edx + 0x24]
push ebx
call fcn.100233b0
add esp, 0xc
mov ebx, eax
jmp 0x10089016
mov ebx, 7
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x24], edx
mov edx, dword [ebp - 0x48]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x44]
push 1
mov dword [edi + 0x70], edx
mov edx, dword [ebp - 8]
mov dword [edi + 0x6c], ecx
mov cl, byte [ebp - 1]
mov dword [edi + 0x74], eax
push 0
push edx
or eax, 0xffffffff
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5e], cl
call fcn.100233b0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov byte [edi + 0x55], 1
test esi, esi
je 0x1008907b
mov eax, dword [esi + 4]
call fcn.10023180
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov eax, edi
call fcn.10058270
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret