Function at 0x4d5380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
cmp byte [esi + 0x4f], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], 0
jne 0x4d53d7
push str.cannot_VACUUM_from_within_a_transaction
push esi
push ebx
call fcn.004d8c00
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x4d5405
push str.cannot_VACUUM___SQL_statements_in_progress
push esi
push ebx
call fcn.004d8c00
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4d545d
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x66def8], 3
je 0x4d5444
push str.non_text_filename
push esi
push ebx
call fcn.004d8c00
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0047e7c0
mov ecx, dword [esi + 0x3c]
add esp, 4
and ecx, 0xfffffffe
mov edx, eax
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x4d5462
mov edx, 0x6bdfb9
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x3c], eax
or eax, 0x201
mov dword [esi + 0x20], eax
and dword [esi + 0x20], 0xefffafff
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x30]
mov ebx, dword [esi + 0x64]
or eax, 6
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], ecx
and dword [esi + 0x24], 0xfffffffe
mov dword [ebp - 0x44], ebx
mov ebx, dword [esi + 0x68]
shl edi, 4
mov dword [ebp - 0x48], ebx
mov bl, byte [esi + 0x58]
mov byte [esi + 0x58], 0
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + edi]
mov eax, dword [eax + edi + 4]
mov dword [ebp - 0x14], eax
push edx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [eax + 4]
mov byte [ebp - 0xd], bl
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [eax]
push esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], ecx
movzx eax, byte [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
call fcn.0049ade0
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x4d576b
mov eax, dword [ebp - 0x2c]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], edi
je 0x4d555d
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x4d5559
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4d553e
cmp dword [ebp - 8], eax
jl 0x4d5559
jg 0x4d553e
cmp dword [ebp - 0xc], eax
jbe 0x4d5559
push str.output_file_already_exists
push esi
push dword [ebp - 0x18]
mov edi, 1
call fcn.004d8c00
add esp, 0xc
jmp 0x4d576b
or dword [esi + 0x18], 8
mov edi, dword [ebp - 0x14]
push edi
call fcn.004b7cd0
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov ecx, dword [ecx + edx + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.004b9bf0
push 0
push edi
call fcn.004b9e00
push eax
push ebx
call fcn.004b9e00
push 0x21
push ebx
call fcn.004b9db0
push str.BEGIN
push dword [ebp - 0x18]
push esi
call fcn.0049ad10
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x4d576b
cmp dword [ebp - 0x20], eax
mov ecx, 2
push eax
cmove eax, ecx
push eax
push dword [ebp - 0x14]
call fcn.004b6d00
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4d576b
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4d55e5
mov dword [esi + 0x5c], 0
mov eax, dword [edi + 4]
push 0
push dword [ebp - 8]
push dword [eax + 0x20]
push ebx
call fcn.004b9ce0
add esp, 0x10
test eax, eax
jne 0x4d5766
cmp dword [ebp - 0x28], eax
jne 0x4d561e
push eax
push dword [ebp - 8]
push dword [esi + 0x5c]
push ebx
call fcn.004b9ce0
add esp, 0x10
test eax, eax
jne 0x4d5766
cmp byte [esi + 0x51], 0
jne 0x4d5766
mov al, byte [esi + 0x54]
test al, al
js 0x4d5634
movsx eax, al
jmp 0x4d563d
push edi
call fcn.004b7c00
add esp, 4
push eax
push ebx
call fcn.004b9b70
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0xa4], al
call fcn.0049ade0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4d576b
push dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebx
push esi
call fcn.0049ade0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d576b
push dword [ebp - 0x1c]
mov byte [esi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.0049ade0
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d576b
push dword [ebp - 0x1c]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.0049ade0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d576b
xor ebx, ebx
nop dword [eax]
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebx + 0x66dfe4]
push eax
push dword [ebp - 0x14]
call fcn.004b7c70
movzx eax, byte [ebx + 0x66dfe5]
add eax, dword [ebp - 0x28]
push eax
movzx eax, byte [ebx + 0x66dfe4]
push eax
push dword [ebp - 0x24]
call fcn.004ba050
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4d576b
add ebx, 2
cmp ebx, 0xa
jl 0x4d56d0
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x20], eax
jne 0x4d572a
push ebx
push dword [ebp - 0x14]
call fcn.004b7430
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d576b
push ebx
call fcn.004b7280
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d576b
cmp dword [ebp - 0x20], eax
jne 0x4d576b
push ebx
call fcn.004b7c00
mov edi, dword [ebp - 0x14]
push eax
push edi
call fcn.004b9b70
mov eax, dword [ebx + 4]
push 1
push dword [ebp - 8]
push dword [eax + 0x20]
push edi
call fcn.004b9ce0
add esp, 0x1c
mov edi, eax
jmp 0x4d576b
mov edi, 7
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x44]
push 1
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x48]
push 0xffffffffffffffff
mov dword [esi + 0x68], eax
mov al, byte [ebp - 0xd]
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.004b9ce0
mov ebx, dword [ebp - 0x34]
add esp, 0x10
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x4d57cb
push dword [ebx + 4]
call fcn.004b70b0
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.004d40e0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret