Function at 0x100945b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, edx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], eax
push edi
mov dword [ebp - 8], ebx
cmp byte [esi + 0x43], al
jne 0x10094642
mov edx, dword [ebx]
test edx, edx
je 0x10094610
cmp dword [esi + 0x1c8], eax
je 0x100945e1
mov ecx, esi
call fcn.100338a0
jmp 0x10094610
cmp edx, dword [esi + 0x120]
jb 0x10094607
cmp edx, dword [esi + 0x124]
jae 0x10094607
mov eax, dword [esi + 0x11c]
mov dword [edx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edx
jmp 0x10094610
push edx
call fcn.10033830
add esp, 4
push 0
push 0x28
mov ecx, esi
call fcn.10033be0
mov esi, eax
add esp, 8
test esi, esi
je 0x10094634
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.100b6ae0
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x98], 1
jle 0x10094664
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.10033ef0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov edx, ebx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x1c], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x58]
cmp byte [esi + 0x44], 2
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0xb4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
mov ecx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov al, byte [eax + 0x10]
mov byte [ebp - 1], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, ecx
mov ecx, esi
push eax
call fcn.10094330
mov ecx, dword [esi + 0x14]
add esp, 4
mov ebx, eax
cmp ecx, edi
jle 0x100946e4
mov eax, dword [esi + 0x10]
mov edx, ecx
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x10094965
mov eax, dword [esi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 - 0xc]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.100484f0
mov edi, dword [ebp - 0x10]
mov cl, byte [edi + 9]
test cl, cl
je 0x1009471b
inc dword [edi + 0xc]
cmp byte [edi + 0xa], bl
jne 0x1009471b
mov ecx, edi
call fcn.10044950
mov cl, byte [edi + 9]
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
test cl, cl
je 0x10094738
add dword [edi + 0xc], 0xffffffff
jne 0x10094738
mov ecx, edi
call fcn.10044910
mov edx, dword [ebp - 8]
mov ecx, esi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.10094330
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.BEGIN_
call fcn.10094330
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
lea edx, [eax + 2]
mov ecx, edi
call fcn.10047540
mov ebx, eax
test ebx, ebx
jne 0x10094968
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10094795
mov dword [esi + 0x4c], ebx
mov edx, dword [edi + 4]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x14]
call fcn.10046ec0
add esp, 8
test eax, eax
jne 0x1009495e
cmp byte [ebp - 1], al
jne 0x100947d0
mov edx, dword [esi + 0x4c]
mov ecx, ebx
push eax
push dword [ebp - 0x14]
call fcn.10046ec0
add esp, 8
test eax, eax
jne 0x1009495e
cmp byte [esi + 0x45], 0
jne 0x1009495e
mov al, byte [esi + 0x48]
test al, al
js 0x100947e6
movsx eax, al
jmp 0x100947ed
mov ecx, edi
call fcn.100470d0
mov edx, eax
mov ecx, ebx
call fcn.10047050
mov edx, dword [ebp - 8]
mov ecx, esi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.100943f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.100943f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.100943f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
or dword [esi + 0x18], 0x8000000
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.100943f0
and dword [esi + 0x18], 0xf7ffffff
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.100943f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.100943f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
mov edx, dword [ebp - 8]
mov ecx, esi
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
call fcn.10094330
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094968
xor edi, edi
nop word [eax + eax]
movzx edx, byte [edi + 0x100ea4cc]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1004df80
movzx eax, byte [edi + 0x100ea4cd]
add esp, 4
add eax, dword [ebp - 8]
movzx edx, byte [edi + 0x100ea4cc]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.1004dfe0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10094965
add edi, 2
cmp edi, 0xa
jl 0x100948d0
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.1004fed0
mov ebx, eax
test ebx, ebx
jne 0x10094968
mov ecx, dword [ebp - 0xc]
call fcn.100484f0
mov ebx, eax
test ebx, ebx
jne 0x10094968
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.100470d0
mov edx, eax
mov ecx, edi
call fcn.10047050
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.10046ec0
add esp, 8
mov ebx, eax
jmp 0x10094968
mov ebx, 7
jmp 0x10094968
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x28]
push 1
push 0xffffffffffffffff
mov dword [esi + 0xb4], eax
call fcn.10046ec0
mov edi, dword [ebp - 0x18]
add esp, 8
mov byte [esi + 0x43], 1
test edi, edi
je 0x100949b5
mov ecx, dword [edi + 4]
call fcn.10046ac0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.10070070
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret