Function at 0x574bb9
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
xor ebx, ebx
inc ebx
xor ebp, ebp
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x55], 0
jne 0x574beb
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [esp + 0x54]
call fcn.005772e6
add esp, 0xc
mov eax, ebx
jmp 0x57502e
cmp dword [esi + 0xbc], ebx
jle 0x574bfa
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x574bd7
mov ecx, dword [esp + 0x58]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x574c37
movzx eax, word [ecx + 0x10]
and eax, 0x3f
cmp byte [eax + 0x657378], 3
je 0x574c20
push str.non_text_filename
jmp 0x574bd7
push ecx
call fcn.00533181
pop ecx
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x574c3c
mov edx, 0x658f34
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x68]
mov dword [esp + 0x2c], ebx
mov bl, byte [esi + 0x5e]
mov dword [esp + 0x3c], edi
mov edi, dword [esi + 0x6c]
mov dword [esp + 0x40], edi
mov edi, dword [esi + 0x70]
mov byte [esp + 0x54], bl
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
and ebx, 0xfffffffe
mov dword [esi + 0x24], ebx
or eax, 6
mov dword [esp + 0x44], edi
lea ebx, [esi + 0x10]
mov edi, dword [esi + 0x74]
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
and ecx, 0xefffafff
shl edi, 4
or ecx, 0x201
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], 0
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 4]
push dword [eax]
call fcn.0056e08f
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
push esi
mov dword [esp + 0x3c], eax
call fcn.0053ea4f
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x574fbc
mov ebp, dword [esp + 0x28]
shl ebp, 4
add ebp, dword [ebx]
mov ebx, dword [ebp + 4]
cmp dword [esp + 0x5c], edi
je 0x574d6c
mov eax, dword [ebx + 4]
lea edx, [esi + 0x10]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x574d4c
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x574e58
cmp dword [esp + 0x24], eax
jg 0x574e58
jl 0x574d49
cmp dword [esp + 0x20], eax
ja 0x574e58
lea edx, [esi + 0x10]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x58]
or dword [esi + 0x18], 8
mov dword [esp + 0x18], edx
movzx ecx, byte [eax + ecx + 8]
mov eax, dword [esi + 0x20]
and eax, 0x38
or ecx, eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x10]
push edi
call fcn.0055b656
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [ecx]
mov ecx, dword [ecx + eax + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.0055cd4c
push 0
push edi
call fcn.0055ce4d
push eax
push ebx
call fcn.0055ce4d
mov eax, dword [esp + 0x38]
or eax, 0x20
push eax
push ebx
call fcn.0055ce25
push str.BEGIN
push dword [esp + 0x78]
push esi
call fcn.0053e99c
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x574fbc
cmp dword [esp + 0x5c], eax
push eax
push 2
pop ecx
cmove eax, ecx
push eax
push dword [esp + 0x18]
call fcn.0055acb3
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x574fbc
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x574e06
cmp dword [esp + 0x5c], 0
jne 0x574e06
and dword [esi + 0x64], 0
mov eax, dword [edi + 4]
push 0
push dword [esp + 0x24]
push dword [eax + 0x24]
push ebx
call fcn.0055cd88
add esp, 0x10
test eax, eax
jne 0x574fb9
cmp dword [esp + 0x30], eax
jne 0x574e42
push eax
push dword [esp + 0x24]
push dword [esi + 0x64]
push ebx
call fcn.0055cd88
add esp, 0x10
test eax, eax
jne 0x574fb9
cmp byte [esi + 0x57], 0
jne 0x574fb9
mov al, byte [esi + 0x5a]
test al, al
js 0x574e72
movsx eax, al
jmp 0x574e79
push str.output_file_already_exists
push esi
push dword [esp + 0x58]
xor edi, edi
inc edi
call fcn.005772e6
add esp, 0xc
jmp 0x574fbc
push edi
call fcn.0055b5e4
pop ecx
push eax
push ebx
call fcn.0055ccfc
push dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x60]
mov byte [esi + 0xb0], al
push esi
call fcn.0053ea4f
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x574fbc
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x58]
push esi
call fcn.0053ea4f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x574fbc
push dword [esp + 0x14]
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 + 0x58]
push esi
call fcn.0053ea4f
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x574fbc
push dword [esp + 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x58]
push esi
call fcn.0053ea4f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x574fbc
mov dword [esp + 0x28], edi
lea eax, [esp + 0x30]
push eax
movzx eax, byte [edi + 0x656ab4]
push eax
push dword [esp + 0x18]
call fcn.0055b60e
movzx eax, byte [edi + 0x656ab5]
add eax, dword [esp + 0x3c]
push eax
movzx eax, byte [edi + 0x656ab4]
push eax
push ebx
call fcn.0055d4c7
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x574fbc
mov edi, dword [esp + 0x28]
add edi, 2
mov dword [esp + 0x28], edi
cmp edi, 0xa
jl 0x574f18
cmp dword [esp + 0x5c], eax
jne 0x574f79
push ebx
push dword [esp + 0x14]
call fcn.0055afa5
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x574fbc
push ebx
call fcn.0055aea9
mov edi, eax
pop ecx
test edi, edi
jne 0x574fbc
cmp dword [esp + 0x5c], eax
jne 0x574fbc
push ebx
call fcn.0055b5e4
mov edi, dword [esp + 0x14]
push eax
push edi
call fcn.0055ccfc
push ebx
call fcn.0055b656
mov ecx, dword [ebx + 4]
push 1
push eax
push dword [ecx + 0x24]
push edi
call fcn.0055cd88
add esp, 0x20
mov edi, eax
jmp 0x574fbc
push 7
pop edi
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x44]
push 1
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x4c]
push ebx
mov dword [esi + 0x74], eax
mov al, byte [esp + 0x5c]
push 0xffffffffffffffff
push dword [esp + 0x1c]
mov byte [esi + 0xb0], bl
mov byte [esi + 0x5e], al
call fcn.0055cd88
add esp, 0x10
mov byte [esi + 0x55], 1
test ebp, ebp
je 0x575024
push dword [ebp + 4]
call fcn.0055ad96
pop ecx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
push esi
call fcn.00573fdd
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret