Function at 0x5c0d10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x47]
test ecx, ecx
jne 0x5c0d68
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005c3d60
add esp, 0xc
mov eax, 1
jmp 0x5c11f4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xa4], 1
jle 0x5c0d93
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005c3d60
add esp, 0xc
mov eax, 1
jmp 0x5c11f4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x18]
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x50]
mov byte [ebp - 0x21], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
or eax, 0x201
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
or eax, 6
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
and eax, 0xffffaf7f
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x50], 0
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0059ee70
add esp, 4
push eax
call fcn.005b7970
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
push str.ATTACHAS_vacuum_db
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0057b0c0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c0e63
jmp 0x5c116b
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059bee0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059cda0
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0059f5e0
add esp, 8
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0059f7e0
add esp, 8
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059f7e0
add esp, 8
push 0x21
mov eax, dword [ebp - 0x10]
push eax
call fcn.0059f790
add esp, 8
push str.BEGIN
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0057b0c0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c0f02
jmp 0x5c116b
push 2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059b790
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c0f1e
jmp 0x5c116b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0059ee70
add esp, 4
push eax
call fcn.005b7960
add esp, 4
cmp eax, 5
jne 0x5c0f42
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x54], 0
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0059cdf0
add esp, 4
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059f690
add esp, 0x10
test eax, eax
jne 0x5c0f93
cmp dword [ebp - 0x2c], 0
jne 0x5c0f88
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0059f690
add esp, 0x10
test eax, eax
jne 0x5c0f93
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x49]
test edx, edx
je 0x5c0f9f
mov dword [ebp - 8], 7
jmp 0x5c116b
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x4c]
test ecx, ecx
jl 0x5c0fb6
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x4c]
mov dword [ebp - 0x4c], eax
jmp 0x5c0fc5
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0059cc30
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0059f500
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x34]
mov byte [ecx + 0x9c], dl
mov eax, dword [ebp - 0x38]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0057b200
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c1008
jmp 0x5c116b
mov eax, dword [ebp - 0x38]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0057b200
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c102f
jmp 0x5c116b
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x9c], 0
mov ecx, dword [ebp - 0x38]
push ecx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0057b200
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 0xfffffffb
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 8], 0
je 0x5c106f
jmp 0x5c116b
mov ecx, dword [ebp - 0x38]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0057b200
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c1096
jmp 0x5c116b
mov dword [ebp - 0x48], 0
jmp 0x5c10a8
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0xa
jge 0x5c10fe
lfence
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x65b628]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0059cd20
add esp, 0xc
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x65b629]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
movzx eax, byte [edx + 0x65b628]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0059fa60
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c10fc
jmp 0x5c116b
jmp 0x5c109f
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059c0e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c1119
jmp 0x5c116b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0059bee0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c1130
jmp 0x5c116b
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059cc30
add esp, 4
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059f500
add esp, 8
push 1
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059cdf0
add esp, 4
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059f690
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x9c], 0
movzx edx, word [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x60], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x21]
mov byte [ecx + 0x50], dl
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call fcn.0059f690
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x47], 1
cmp dword [ebp - 0x28], 0
je 0x5c11e5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call fcn.0059bc90
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.005bf8b0
add esp, 4
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x5c1220]
call fcn.00600d94
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041af05
add esp, 0x4c
cmp ebp, esp
call fcn.00600dea
mov esp, ebp
pop ebp
ret